File tree Expand file tree Collapse file tree 5 files changed +9
-11
lines changed
include/mlir/Dialect/LLVMIR Expand file tree Collapse file tree 5 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 17
17
#include " mlir/Dialect/LLVMIR/LLVMTypes.h"
18
18
#include " mlir/IR/BuiltinAttributes.h"
19
19
#include " mlir/Interfaces/DataLayoutInterfaces.h"
20
- #include " llvm/IR/DataLayout.h"
21
20
#include " llvm/ADT/MapVector.h"
21
+ #include " llvm/IR/DataLayout.h"
22
22
23
23
namespace llvm {
24
24
class StringRef ;
@@ -64,8 +64,7 @@ class DataLayoutImporter {
64
64
translateDataLayoutFromStr ();
65
65
}
66
66
67
- DataLayoutImporter (MLIRContext *context,
68
- StringRef dataLayoutStr)
67
+ DataLayoutImporter (MLIRContext *context, StringRef dataLayoutStr)
69
68
: layoutStr(dataLayoutStr), context(context) {
70
69
translateDataLayoutFromStr ();
71
70
}
Original file line number Diff line number Diff line change 7
7
//===----------------------------------------------------------------------===//
8
8
9
9
include "mlir/Dialect/LLVMIR/LLVMAttrDefs.td"
10
- include "mlir/Dialect/LLVMIR/LLVMEnums.td"
10
+ include "mlir/Dialect/LLVMIR/LLVMEnums.td"
Original file line number Diff line number Diff line change 14
14
#ifndef MLIR_DIALECT_LLVMIR_LLVMATTRS_H_
15
15
#define MLIR_DIALECT_LLVMIR_LLVMATTRS_H_
16
16
17
+ #include " mlir/IR/OpImplementation.h"
18
+ #include " mlir/Interfaces/DataLayoutInterfaces.h"
17
19
#include " llvm/MC/TargetRegistry.h"
18
20
#include " llvm/Target/TargetMachine.h"
19
- #include " mlir/Interfaces/DataLayoutInterfaces.h"
20
- #include " mlir/IR/OpImplementation.h"
21
21
#include < optional>
22
22
23
23
#include " mlir/Dialect/LLVMIR/LLVMOpsEnums.h.inc"
@@ -91,8 +91,8 @@ class TBAANodeAttr : public Attribute {
91
91
// TODO: this shouldn't be needed after we unify the attribute generation, i.e.
92
92
// --gen-attr-* and --gen-attrdef-*.
93
93
using cconv::CConv;
94
- using tailcallkind::TailCallKind;
95
94
using linkage::Linkage;
95
+ using tailcallkind::TailCallKind;
96
96
} // namespace LLVM
97
97
} // namespace mlir
98
98
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- // #include "DataLayoutImporter.h"
10
- // #include "mlir/Target/LLVMIR/DataLayoutImporter.h"
11
9
#include " mlir/Dialect/LLVMIR/DataLayoutImporter.h"
12
10
#include " mlir/Dialect/DLTI/DLTI.h"
13
11
#include " mlir/Dialect/LLVMIR/LLVMDialect.h"
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " mlir/Dialect/DLTI/DLTI.h"
10
+ #include " mlir/Dialect/LLVMIR/DataLayoutImporter.h"
10
11
#include " mlir/Dialect/LLVMIR/LLVMDialect.h"
11
12
#include " mlir/Pass/Pass.h"
12
- #include " mlir/Dialect/LLVMIR/DataLayoutImporter.h"
13
13
14
14
namespace mlir {
15
15
namespace LLVM {
@@ -22,7 +22,8 @@ using namespace mlir;
22
22
using namespace mlir ::LLVM;
23
23
24
24
struct DataLayoutFromTargetPass
25
- : public LLVM::impl::LLVMDataLayoutFromTargetBase<DataLayoutFromTargetPass> {
25
+ : public LLVM::impl::LLVMDataLayoutFromTargetBase<
26
+ DataLayoutFromTargetPass> {
26
27
void runOnOperation () override {
27
28
ModuleOp mod = getOperation ();
28
29
You can’t perform that action at this time.
0 commit comments