Skip to content

Commit

Permalink
Clean up LLVM includes.
Browse files Browse the repository at this point in the history
Use the "relative-to-llvm-root" invludes for all LLVM headers.
  • Loading branch information
ondrasej committed Oct 22, 2023
1 parent 7bdfd07 commit a5bac1d
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 43 deletions.
40 changes: 20 additions & 20 deletions gematria/llvm/asm_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,26 @@
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "gematria/llvm/diagnostics.h"
#include "llvm/include/llvm/BinaryFormat/ELF.h"
#include "llvm/include/llvm/IR/InlineAsm.h"
#include "llvm/include/llvm/MC/MCContext.h"
#include "llvm/include/llvm/MC/MCDirectives.h"
#include "llvm/include/llvm/MC/MCInst.h"
#include "llvm/include/llvm/MC/MCObjectFileInfo.h"
#include "llvm/include/llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/include/llvm/MC/MCSection.h"
#include "llvm/include/llvm/MC/MCSectionELF.h"
#include "llvm/include/llvm/MC/MCStreamer.h"
#include "llvm/include/llvm/MC/MCSubtargetInfo.h"
#include "llvm/include/llvm/MC/MCSymbol.h"
#include "llvm/include/llvm/MC/MCTargetOptions.h"
#include "llvm/include/llvm/MC/TargetRegistry.h"
#include "llvm/include/llvm/Support/Alignment.h"
#include "llvm/include/llvm/Support/MemoryBuffer.h"
#include "llvm/include/llvm/Support/SMLoc.h"
#include "llvm/include/llvm/Support/SourceMgr.h"
#include "llvm/include/llvm/Target/TargetMachine.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/IR/InlineAsm.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDirectives.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/MC/MCSection.h"
#include "llvm/MC/MCSectionELF.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCTargetOptions.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/Alignment.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Target/TargetMachine.h"

namespace gematria {
namespace {
Expand Down
8 changes: 4 additions & 4 deletions gematria/llvm/asm_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
#include <vector>

#include "absl/status/statusor.h"
#include "llvm/include/llvm/IR/InlineAsm.h"
#include "llvm/include/llvm/MC/MCInst.h"
#include "llvm/include/llvm/Support/MemoryBuffer.h"
#include "llvm/include/llvm/Target/TargetMachine.h"
#include "llvm/IR/InlineAsm.h"
#include "llvm/MC/MCInst.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Target/TargetMachine.h"

namespace gematria {

Expand Down
8 changes: 4 additions & 4 deletions gematria/llvm/asm_parser_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
#include "gematria/testing/matchers.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "llvm/include/llvm/IR/InlineAsm.h"
#include "llvm/include/llvm/MC/MCInst.h"
#include "llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h" //// IWYU pragma: keep (for opcodes).
#include "llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h"
#include "llvm/IR/InlineAsm.h"
#include "llvm/MC/MCInst.h"
#include "lib/Target/X86/MCTargetDesc/X86BaseInfo.h" //// IWYU pragma: keep (for opcodes).
#include "lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h"

namespace gematria {
namespace {
Expand Down
6 changes: 3 additions & 3 deletions gematria/llvm/canonicalizer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
#include "gematria/llvm/llvm_architecture_support.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "llvm/include/llvm/IR/InlineAsm.h"
#include "llvm/include/llvm/MC/MCInst.h"
#include "llvm/include/llvm/MC/MCInstPrinter.h"
#include "llvm/IR/InlineAsm.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstPrinter.h"

namespace gematria {
namespace {
Expand Down
6 changes: 3 additions & 3 deletions gematria/llvm/diagnostics.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
#include <string>
#include <vector>

#include "llvm/include/llvm/MC/MCContext.h"
#include "llvm/include/llvm/Support/SourceMgr.h"
#include "llvm/include/llvm/Support/raw_ostream.h"
#include "llvm/MC/MCContext.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h"

namespace gematria {

Expand Down
8 changes: 4 additions & 4 deletions gematria/llvm/diagnostics_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
#include "gematria/llvm/llvm_architecture_support.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "llvm/include/llvm/MC/MCContext.h"
#include "llvm/include/llvm/Support/MemoryBuffer.h"
#include "llvm/include/llvm/Support/SMLoc.h"
#include "llvm/include/llvm/Support/SourceMgr.h"
#include "llvm/MC/MCContext.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/SourceMgr.h"

namespace gematria {
namespace {
Expand Down
2 changes: 1 addition & 1 deletion gematria/testing/llvm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "llvm/include/llvm/MC/MCInst.h"
#include "llvm/MC/MCInst.h"

namespace gematria {

Expand Down
2 changes: 1 addition & 1 deletion gematria/testing/llvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <vector>

#include "gtest/gtest.h"
#include "llvm/include/llvm/MC/MCInst.h"
#include "llvm/MC/MCInst.h"

namespace gematria {

Expand Down
6 changes: 3 additions & 3 deletions gematria/testing/llvm_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "llvm/include/llvm/MC/MCInst.h"
#include "llvm/include/llvm/MC/MCInstBuilder.h"
#include "llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstBuilder.h"
#include "lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h"

namespace gematria {
namespace {
Expand Down

0 comments on commit a5bac1d

Please sign in to comment.