forked from OSchip/llvm-project
NFC: Move LLVMIR, SDBM, and StandardOps to the Dialect/ directory.
PiperOrigin-RevId: 264193915
This commit is contained in:
parent
64abcd983d
commit
ba0fa92524
|
@ -21,6 +21,7 @@
|
|||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Analysis/SliceAnalysis.h"
|
||||
#include "mlir/Analysis/Verifier.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/EDSC/Builders.h"
|
||||
#include "mlir/EDSC/Helpers.h"
|
||||
#include "mlir/EDSC/Intrinsics.h"
|
||||
|
@ -35,7 +36,6 @@
|
|||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassManager.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/LogicalResult.h"
|
||||
#include "mlir/Transforms/LoopUtils.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
#ifndef LINALG1_LLVMINTRINSICS_H_
|
||||
#define LINALG1_LLVMINTRINSICS_H_
|
||||
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/EDSC/Builders.h"
|
||||
#include "mlir/EDSC/Intrinsics.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
|
||||
// Expose some LLVM IR instructions to declarative builders.
|
||||
namespace intrinsics {
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
#include "linalg1/Common.h"
|
||||
#include "linalg1/Ops.h"
|
||||
#include "linalg1/Types.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/EDSC/Intrinsics.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
using llvm::ArrayRef;
|
||||
using mlir::ConstantIndexOp;
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "mlir/Conversion/ControlFlowToCFG/ConvertControlFlowToCFG.h"
|
||||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h"
|
||||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/EDSC/Builders.h"
|
||||
#include "mlir/EDSC/Intrinsics.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
|
@ -28,7 +29,6 @@
|
|||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassManager.h"
|
||||
#include "mlir/Support/LogicalResult.h"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "mlir/Conversion/ControlFlowToCFG/ConvertControlFlowToCFG.h"
|
||||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h"
|
||||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/EDSC/Builders.h"
|
||||
#include "mlir/EDSC/Intrinsics.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
|
@ -28,7 +29,6 @@
|
|||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Transforms/DialectConversion.h"
|
||||
#include "mlir/Transforms/LowerAffine.h"
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "toy/AST.h"
|
||||
|
||||
#include "mlir/Analysis/Verifier.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
|
@ -32,7 +33,6 @@
|
|||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/ScopedHashTable.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "toy/Dialect.h"
|
||||
|
||||
#include "mlir/Analysis/Verifier.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
|
@ -33,7 +34,6 @@
|
|||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/ScopedHashTable.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "toy/Dialect.h"
|
||||
|
||||
#include "mlir/Analysis/Verifier.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
|
@ -33,7 +34,6 @@
|
|||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/ScopedHashTable.h"
|
||||
|
|
|
@ -23,11 +23,11 @@
|
|||
#include "toy/Dialect.h"
|
||||
|
||||
#include "mlir/Analysis/Verifier.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/BlockAndValueMapping.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/LogicalResult.h"
|
||||
#include "mlir/Support/STLExtras.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
|
|
|
@ -31,13 +31,13 @@
|
|||
#include "linalg1/Intrinsics.h"
|
||||
#include "linalg1/ViewOp.h"
|
||||
#include "linalg3/TensorOps.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/EDSC/Builders.h"
|
||||
#include "mlir/EDSC/Helpers.h"
|
||||
#include "mlir/EDSC/Intrinsics.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/OperationSupport.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Parser.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Transforms/DialectConversion.h"
|
||||
|
|
|
@ -30,13 +30,13 @@
|
|||
#include "linalg3/ConvertToLLVMDialect.h"
|
||||
#include "linalg3/TensorOps.h"
|
||||
#include "linalg3/Transforms.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/EDSC/Builders.h"
|
||||
#include "mlir/EDSC/Helpers.h"
|
||||
#include "mlir/EDSC/Intrinsics.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/OperationSupport.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Parser.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Transforms/DialectConversion.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "toy/Dialect.h"
|
||||
|
||||
#include "mlir/Analysis/Verifier.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
|
@ -33,7 +34,6 @@
|
|||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/ScopedHashTable.h"
|
||||
|
|
|
@ -23,11 +23,11 @@
|
|||
#include "toy/Dialect.h"
|
||||
|
||||
#include "mlir/Analysis/Verifier.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/BlockAndValueMapping.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/LogicalResult.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
|
|
|
@ -2,6 +2,4 @@ add_subdirectory(AffineOps)
|
|||
add_subdirectory(Dialect)
|
||||
add_subdirectory(EDSC)
|
||||
add_subdirectory(Linalg)
|
||||
add_subdirectory(LLVMIR)
|
||||
add_subdirectory(StandardOps)
|
||||
add_subdirectory(VectorOps)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
add_subdirectory(FxpMathOps)
|
||||
add_subdirectory(GPU)
|
||||
add_subdirectory(LLVMIR)
|
||||
add_subdirectory(LoopOps)
|
||||
add_subdirectory(QuantOps)
|
||||
add_subdirectory(SPIRV)
|
||||
add_subdirectory(StandardOps)
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef MLIR_TARGET_LLVMDIALECT_H_
|
||||
#define MLIR_TARGET_LLVMDIALECT_H_
|
||||
#ifndef MLIR_DIALECT_LLVMIR_LLVMDIALECT_H_
|
||||
#define MLIR_DIALECT_LLVMIR_LLVMDIALECT_H_
|
||||
|
||||
#include "mlir/IR/Dialect.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
|
@ -34,7 +34,7 @@
|
|||
#include "llvm/IR/Module.h"
|
||||
#include "llvm/IR/Type.h"
|
||||
|
||||
#include "mlir/LLVMIR/LLVMOpsEnums.h.inc"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMOpsEnums.h.inc"
|
||||
|
||||
namespace llvm {
|
||||
class Type;
|
||||
|
@ -145,7 +145,7 @@ private:
|
|||
|
||||
///// Ops /////
|
||||
#define GET_OP_CLASSES
|
||||
#include "mlir/LLVMIR/LLVMOps.h.inc"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMOps.h.inc"
|
||||
|
||||
class LLVMDialect : public Dialect {
|
||||
public:
|
||||
|
@ -177,4 +177,4 @@ private:
|
|||
} // end namespace LLVM
|
||||
} // end namespace mlir
|
||||
|
||||
#endif // MLIR_TARGET_LLVMDIALECT_H_
|
||||
#endif // MLIR_DIALECT_LLVMIR_LLVMDIALECT_H_
|
|
@ -23,7 +23,7 @@
|
|||
#else
|
||||
#define LLVMIR_OPS
|
||||
|
||||
include "mlir/LLVMIR/LLVMOpBase.td"
|
||||
include "mlir/Dialect/LLVMIR/LLVMOpBase.td"
|
||||
|
||||
// Base class for LLVM operations. All operations get an "llvm." prefix in
|
||||
// their name automatically. LLVM operations have either zero or one result,
|
|
@ -20,8 +20,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef MLIR_LLVMIR_NVVMDIALECT_H_
|
||||
#define MLIR_LLVMIR_NVVMDIALECT_H_
|
||||
#ifndef MLIR_DIALECT_LLVMIR_NVVMDIALECT_H_
|
||||
#define MLIR_DIALECT_LLVMIR_NVVMDIALECT_H_
|
||||
|
||||
#include "mlir/IR/Dialect.h"
|
||||
#include "mlir/IR/OpDefinition.h"
|
||||
|
@ -30,7 +30,7 @@ namespace NVVM {
|
|||
|
||||
///// Ops /////
|
||||
#define GET_OP_CLASSES
|
||||
#include "mlir/LLVMIR/NVVMOps.h.inc"
|
||||
#include "mlir/Dialect/LLVMIR/NVVMOps.h.inc"
|
||||
|
||||
class NVVMDialect : public Dialect {
|
||||
public:
|
||||
|
@ -40,4 +40,4 @@ public:
|
|||
} // namespace NVVM
|
||||
} // namespace mlir
|
||||
|
||||
#endif /* MLIR_LLVMIR_NVVMDIALECT_H_ */
|
||||
#endif /* MLIR_DIALECT_LLVMIR_NVVMDIALECT_H_ */
|
|
@ -23,7 +23,7 @@
|
|||
#else
|
||||
#define NVVMIR_OPS
|
||||
|
||||
include "mlir/LLVMIR/LLVMOpBase.td"
|
||||
include "mlir/Dialect/LLVMIR/LLVMOpBase.td"
|
||||
|
||||
def NVVM_Dialect : Dialect {
|
||||
let name = "nvvm";
|
|
@ -20,8 +20,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef INCLUDE_MLIR_IR_SDBM_H
|
||||
#define INCLUDE_MLIR_IR_SDBM_H
|
||||
#ifndef MLIR_DIALECT_SDBM_SDBM_H
|
||||
#define MLIR_DIALECT_SDBM_SDBM_H
|
||||
|
||||
#include "mlir/Support/LLVM.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
@ -203,4 +203,4 @@ private:
|
|||
|
||||
} // namespace mlir
|
||||
|
||||
#endif // INCLUDE_MLIR_IR_SDBM_H
|
||||
#endif // MLIR_DIALECT_SDBM_SDBM_H
|
|
@ -15,8 +15,8 @@
|
|||
// limitations under the License.
|
||||
// =============================================================================
|
||||
|
||||
#ifndef MLIR_SDBM_SDBMDIALECT_H
|
||||
#define MLIR_SDBM_SDBMDIALECT_H
|
||||
#ifndef MLIR_DIALECT_SDBM_SDBMDIALECT_H
|
||||
#define MLIR_DIALECT_SDBM_SDBMDIALECT_H
|
||||
|
||||
#include "mlir/IR/Dialect.h"
|
||||
#include "mlir/Support/StorageUniquer.h"
|
||||
|
@ -38,4 +38,4 @@ private:
|
|||
};
|
||||
} // namespace mlir
|
||||
|
||||
#endif // MLIR_SDBM_SDBMDIALECT_H
|
||||
#endif // MLIR_DIALECT_SDBM_SDBMDIALECT_H
|
|
@ -21,8 +21,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef MLIR_IR_SDBMEXPR_H
|
||||
#define MLIR_IR_SDBMEXPR_H
|
||||
#ifndef MLIR_DIALECT_SDBM_SDBMEXPR_H
|
||||
#define MLIR_DIALECT_SDBM_SDBMEXPR_H
|
||||
|
||||
#include "mlir/Support/LLVM.h"
|
||||
#include "llvm/ADT/DenseMapInfo.h"
|
||||
|
@ -527,4 +527,4 @@ template <> struct DenseMapInfo<mlir::SDBMConstantExpr> {
|
|||
};
|
||||
} // namespace llvm
|
||||
|
||||
#endif // MLIR_IR_SDBMEXPR_H
|
||||
#endif // MLIR_DIALECT_SDBM_SDBMEXPR_H
|
|
@ -20,8 +20,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef MLIR_STANDARDOPS_OPS_H
|
||||
#define MLIR_STANDARDOPS_OPS_H
|
||||
#ifndef MLIR_DIALECT_STANDARDOPS_OPS_H
|
||||
#define MLIR_DIALECT_STANDARDOPS_OPS_H
|
||||
|
||||
#include "mlir/IR/Attributes.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
|
@ -94,7 +94,7 @@ enum class CmpFPredicate {
|
|||
};
|
||||
|
||||
#define GET_OP_CLASSES
|
||||
#include "mlir/StandardOps/Ops.h.inc"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h.inc"
|
||||
|
||||
/// This is a refinement of the "constant" op for the case where it is
|
||||
/// returning a float value of FloatType.
|
||||
|
@ -360,4 +360,4 @@ ParseResult parseDimAndSymbolList(OpAsmParser *parser,
|
|||
|
||||
} // end namespace mlir
|
||||
|
||||
#endif // MLIR_STANDARDOPS_OPS_H
|
||||
#endif // MLIR_DIALECT_STANDARDOPS_OPS_H
|
|
@ -24,8 +24,8 @@
|
|||
#define MLIR_EDSC_BUILDERS_H_
|
||||
|
||||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/FoldUtils.h"
|
||||
#include "mlir/VectorOps/VectorOps.h"
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
#ifndef MLIR_TRANSFORMS_UTILS_H
|
||||
#define MLIR_TRANSFORMS_UTILS_H
|
||||
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineMap.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
// =============================================================================
|
||||
|
||||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Block.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
|
@ -23,7 +24,6 @@
|
|||
#include "mlir/IR/Matchers.h"
|
||||
#include "mlir/IR/OpImplementation.h"
|
||||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
#include "llvm/ADT/SmallBitVector.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
|
|
@ -24,12 +24,12 @@
|
|||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Analysis/AffineStructures.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExprVisitor.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/IR/IntegerSet.h"
|
||||
#include "mlir/IR/Operation.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/MathExtras.h"
|
||||
#include "mlir/Support/STLExtras.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
|
|
@ -21,11 +21,11 @@
|
|||
|
||||
#include "mlir/Analysis/AffineStructures.h"
|
||||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExprVisitor.h"
|
||||
#include "mlir/IR/AffineMap.h"
|
||||
#include "mlir/IR/IntegerSet.h"
|
||||
#include "mlir/IR/Operation.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/MathExtras.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
|
|
|
@ -26,10 +26,10 @@
|
|||
#include "mlir/Analysis/AffineStructures.h"
|
||||
#include "mlir/Analysis/NestedMatcher.h"
|
||||
#include "mlir/Analysis/VectorAnalysis.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineMap.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Operation.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/Functional.h"
|
||||
#include "mlir/Support/MathExtras.h"
|
||||
#include "mlir/VectorOps/VectorOps.h"
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
#include "mlir/Analysis/AffineStructures.h"
|
||||
#include "mlir/Analysis/Passes.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
||||
#define DEBUG_TYPE "memref-bound-check"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include "mlir/Analysis/NestedMatcher.h"
|
||||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
#include "mlir/Analysis/AffineStructures.h"
|
||||
#include "mlir/Analysis/Passes.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
||||
#define DEBUG_TYPE "test-memref-dependence-check"
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Analysis/AffineAnalysis.h"
|
||||
#include "mlir/Analysis/AffineStructures.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Analysis/AffineAnalysis.h"
|
||||
#include "mlir/Analysis/LoopAnalysis.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/IntegerSet.h"
|
||||
#include "mlir/IR/Operation.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/Functional.h"
|
||||
#include "mlir/Support/STLExtras.h"
|
||||
#include "mlir/VectorOps/VectorOps.h"
|
||||
|
|
|
@ -5,13 +5,10 @@ add_subdirectory(Dialect)
|
|||
add_subdirectory(EDSC)
|
||||
add_subdirectory(ExecutionEngine)
|
||||
add_subdirectory(IR)
|
||||
add_subdirectory(LLVMIR)
|
||||
add_subdirectory(Linalg)
|
||||
add_subdirectory(Parser)
|
||||
add_subdirectory(Pass)
|
||||
add_subdirectory(Quantizer)
|
||||
add_subdirectory(SDBM)
|
||||
add_subdirectory(StandardOps)
|
||||
add_subdirectory(Support)
|
||||
add_subdirectory(TableGen)
|
||||
add_subdirectory(Target)
|
||||
|
|
|
@ -22,12 +22,12 @@
|
|||
|
||||
#include "mlir/Conversion/ControlFlowToCFG/ConvertControlFlowToCFG.h"
|
||||
#include "mlir/Dialect/LoopOps/LoopOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/MLIRContext.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/Functional.h"
|
||||
#include "mlir/Transforms/DialectConversion.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
|
|
|
@ -25,12 +25,12 @@
|
|||
#include "mlir/Conversion/GPUToCUDA/GPUToCUDAPass.h"
|
||||
|
||||
#include "mlir/Dialect/GPU/GPUDialect.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
|
|
|
@ -21,13 +21,13 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/Dialect/GPU/GPUDialect.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/IR/Identifier.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassRegistry.h"
|
||||
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/Dialect/GPU/GPUDialect.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Dialect/LLVMIR/NVVMDialect.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/LLVMIR/NVVMDialect.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassRegistry.h"
|
||||
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Dialect/GPU/GPUDialect.h"
|
||||
#include "mlir/Dialect/LoopOps/LoopOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/LowerAffine.h"
|
||||
#include "mlir/Transforms/RegionUtils.h"
|
||||
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h"
|
||||
#include "mlir/Conversion/ControlFlowToCFG/ConvertControlFlowToCFG.h"
|
||||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/MLIRContext.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/Functional.h"
|
||||
#include "mlir/Transforms/DialectConversion.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "mlir/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.h"
|
||||
#include "mlir/Dialect/SPIRV/SPIRVDialect.h"
|
||||
#include "mlir/Dialect/SPIRV/SPIRVOps.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
|
||||
using namespace mlir;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#ifdef STANDARD_OPS
|
||||
#else
|
||||
include "mlir/StandardOps/Ops.td"
|
||||
include "mlir/Dialect/StandardOps/Ops.td"
|
||||
#endif // STANDARD_OPS
|
||||
|
||||
#ifdef SPIRV_OPS
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "mlir/Conversion/VectorToLLVM/VectorToLLVM.h"
|
||||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h"
|
||||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/MLIRContext.h"
|
||||
|
@ -26,7 +27,6 @@
|
|||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassManager.h"
|
||||
#include "mlir/Transforms/DialectConversion.h"
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
add_subdirectory(FxpMathOps)
|
||||
add_subdirectory(GPU)
|
||||
add_subdirectory(LLVMIR)
|
||||
add_subdirectory(LoopOps)
|
||||
add_subdirectory(QuantOps)
|
||||
add_subdirectory(SDBM)
|
||||
add_subdirectory(SPIRV)
|
||||
add_subdirectory(StandardOps)
|
||||
|
||||
add_llvm_library(MLIRDialect
|
||||
Traits.cpp
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
|
||||
#include "mlir/Dialect/FxpMathOps/FxpMathOps.h"
|
||||
#include "mlir/Dialect/FxpMathOps/Passes.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Diagnostics.h"
|
||||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
using namespace mlir;
|
||||
using namespace mlir::fxpmath;
|
||||
|
|
|
@ -20,13 +20,13 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/Dialect/GPU/GPUDialect.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/IR/OpImplementation.h"
|
||||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
using namespace mlir;
|
||||
using namespace mlir::gpu;
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
|
||||
#include "mlir/Dialect/GPU/GPUDialect.h"
|
||||
#include "mlir/Dialect/GPU/Passes.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/BlockAndValueMapping.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
using namespace mlir;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ add_llvm_library(MLIRLLVMIR
|
|||
IR/LLVMDialect.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/LLVMIR
|
||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
|
||||
)
|
||||
add_dependencies(MLIRLLVMIR MLIRLLVMOpsIncGen MLIRLLVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
|
||||
target_link_libraries(MLIRLLVMIR LLVMAsmParser LLVMCore LLVMSupport)
|
||||
|
@ -11,7 +11,7 @@ add_llvm_library(MLIRNVVMIR
|
|||
IR/NVVMDialect.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/LLVMIR
|
||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
|
||||
)
|
||||
add_dependencies(MLIRNVVMIR MLIRNVVMOpsIncGen MLIRNVVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
|
||||
target_link_libraries(MLIRNVVMIR LLVMAsmParser LLVMCore LLVMSupport)
|
|
@ -19,7 +19,7 @@
|
|||
// MLIR, and the LLVM IR dialect. It also registers the dialect.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/MLIRContext.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
|
@ -35,7 +35,7 @@
|
|||
using namespace mlir;
|
||||
using namespace mlir::LLVM;
|
||||
|
||||
#include "mlir/LLVMIR/LLVMOpsEnums.cpp.inc"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMOpsEnums.cpp.inc"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Printing/parsing for LLVM::CmpOp.
|
||||
|
@ -1163,7 +1163,7 @@ LLVMDialect::LLVMDialect(MLIRContext *context)
|
|||
addTypes<LLVMType>();
|
||||
addOperations<
|
||||
#define GET_OP_LIST
|
||||
#include "mlir/LLVMIR/LLVMOps.cpp.inc"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMOps.cpp.inc"
|
||||
>();
|
||||
|
||||
// Support unknown operations because not all LLVM operations are registered.
|
||||
|
@ -1189,7 +1189,7 @@ LLVMDialect::LLVMDialect(MLIRContext *context)
|
|||
LLVMDialect::~LLVMDialect() {}
|
||||
|
||||
#define GET_OP_CLASSES
|
||||
#include "mlir/LLVMIR/LLVMOps.cpp.inc"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMOps.cpp.inc"
|
||||
|
||||
llvm::LLVMContext &LLVMDialect::getLLVMContext() { return impl->llvmContext; }
|
||||
llvm::Module &LLVMDialect::getLLVMModule() { return impl->module; }
|
|
@ -23,13 +23,13 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/LLVMIR/NVVMDialect.h"
|
||||
#include "mlir/Dialect/LLVMIR/NVVMDialect.h"
|
||||
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/MLIRContext.h"
|
||||
#include "mlir/IR/Operation.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "llvm/AsmParser/Parser.h"
|
||||
#include "llvm/IR/Attributes.h"
|
||||
#include "llvm/IR/Function.h"
|
||||
|
@ -72,7 +72,7 @@ static ParseResult parseNVVMSpecialRegisterOp(OpAsmParser *parser,
|
|||
NVVMDialect::NVVMDialect(MLIRContext *context) : Dialect("nvvm", context) {
|
||||
addOperations<
|
||||
#define GET_OP_LIST
|
||||
#include "mlir/LLVMIR/NVVMOps.cpp.inc"
|
||||
#include "mlir/Dialect/LLVMIR/NVVMOps.cpp.inc"
|
||||
>();
|
||||
|
||||
// Support unknown operations because not all NVVM operations are registered.
|
||||
|
@ -80,7 +80,7 @@ NVVMDialect::NVVMDialect(MLIRContext *context) : Dialect("nvvm", context) {
|
|||
}
|
||||
|
||||
#define GET_OP_CLASSES
|
||||
#include "mlir/LLVMIR/NVVMOps.cpp.inc"
|
||||
#include "mlir/Dialect/LLVMIR/NVVMOps.cpp.inc"
|
||||
|
||||
static DialectRegistration<NVVMDialect> nvvmDialect;
|
||||
|
|
@ -16,6 +16,7 @@
|
|||
// =============================================================================
|
||||
|
||||
#include "mlir/Dialect/LoopOps/LoopOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/AffineMap.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
|
@ -26,7 +27,6 @@
|
|||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/IR/Value.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/MathExtras.h"
|
||||
#include "mlir/Support/STLExtras.h"
|
||||
|
||||
|
|
|
@ -19,12 +19,12 @@
|
|||
#include "mlir/Dialect/QuantOps/QuantOps.h"
|
||||
#include "mlir/Dialect/QuantOps/QuantizeUtils.h"
|
||||
#include "mlir/Dialect/QuantOps/UniformSupport.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
#include "mlir/IR/Matchers.h"
|
||||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
using namespace mlir;
|
||||
using namespace mlir::quant;
|
||||
|
|
|
@ -4,7 +4,7 @@ add_llvm_library(MLIRSDBM
|
|||
SDBMDialect.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/SDBM
|
||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SDBM
|
||||
)
|
||||
add_dependencies(MLIRSDBM MLIRIR)
|
||||
target_link_libraries(MLIRSDBM MLIRIR)
|
|
@ -20,8 +20,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/SDBM/SDBM.h"
|
||||
#include "mlir/SDBM/SDBMExpr.h"
|
||||
#include "mlir/Dialect/SDBM/SDBM.h"
|
||||
#include "mlir/Dialect/SDBM/SDBMExpr.h"
|
||||
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
|
@ -15,6 +15,6 @@
|
|||
// limitations under the License.
|
||||
// =============================================================================
|
||||
|
||||
#include "mlir/SDBM/SDBMDialect.h"
|
||||
#include "mlir/Dialect/SDBM/SDBMDialect.h"
|
||||
|
||||
static mlir::DialectRegistration<mlir::SDBMDialect> SDBMDialect;
|
|
@ -21,11 +21,11 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/SDBM/SDBMExpr.h"
|
||||
#include "mlir/Dialect/SDBM/SDBMExpr.h"
|
||||
#include "SDBMExprDetail.h"
|
||||
#include "mlir/Dialect/SDBM/SDBMDialect.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/AffineExprVisitor.h"
|
||||
#include "mlir/SDBM/SDBMDialect.h"
|
||||
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef MLIR_IR_SDBMEXPRDETAIL_H
|
||||
#define MLIR_IR_SDBMEXPRDETAIL_H
|
||||
|
||||
#include "mlir/SDBM/SDBMExpr.h"
|
||||
#include "mlir/Dialect/SDBM/SDBMExpr.h"
|
||||
#include "mlir/Support/StorageUniquer.h"
|
||||
|
||||
namespace mlir {
|
|
@ -22,10 +22,10 @@
|
|||
|
||||
#include "mlir/Dialect/SPIRV/SPIRVOps.h"
|
||||
#include "mlir/Dialect/SPIRV/Serialization.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/FileUtilities.h"
|
||||
#include "mlir/Translation.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
|
|
|
@ -3,7 +3,7 @@ add_llvm_library(MLIRStandardOps
|
|||
${globbed}
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/StandardOps
|
||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/StandardOps
|
||||
)
|
||||
add_dependencies(MLIRStandardOps MLIRStandardOpsIncGen LLVMSupport)
|
||||
target_link_libraries(MLIRStandardOps LLVMSupport)
|
|
@ -15,7 +15,7 @@
|
|||
// limitations under the License.
|
||||
// =============================================================================
|
||||
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
using namespace mlir;
|
||||
|
||||
// Static initialization for standard op dialect registration.
|
|
@ -15,7 +15,7 @@
|
|||
// limitations under the License.
|
||||
// =============================================================================
|
||||
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/AffineMap.h"
|
||||
|
@ -84,7 +84,7 @@ StandardOpsDialect::StandardOpsDialect(MLIRContext *context)
|
|||
: Dialect(getDialectNamespace(), context) {
|
||||
addOperations<DmaStartOp, DmaWaitOp,
|
||||
#define GET_OP_LIST
|
||||
#include "mlir/StandardOps/Ops.cpp.inc"
|
||||
#include "mlir/Dialect/StandardOps/Ops.cpp.inc"
|
||||
>();
|
||||
}
|
||||
|
||||
|
@ -2099,4 +2099,4 @@ OpFoldResult TensorCastOp::fold(ArrayRef<Attribute> operands) {
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define GET_OP_CLASSES
|
||||
#include "mlir/StandardOps/Ops.cpp.inc"
|
||||
#include "mlir/Dialect/StandardOps/Ops.cpp.inc"
|
|
@ -16,8 +16,8 @@
|
|||
// =============================================================================
|
||||
|
||||
#include "mlir/EDSC/Builders.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
#include "llvm/ADT/Optional.h"
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
// =============================================================================
|
||||
|
||||
#include "mlir/EDSC/Helpers.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
using namespace mlir;
|
||||
using namespace mlir::edsc;
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "mlir/Conversion/ControlFlowToCFG/ConvertControlFlowToCFG.h"
|
||||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h"
|
||||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/EDSC/Builders.h"
|
||||
#include "mlir/EDSC/Intrinsics.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
|
@ -28,7 +29,6 @@
|
|||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Linalg/IR/LinalgOps.h"
|
||||
#include "mlir/Linalg/IR/LinalgTypes.h"
|
||||
#include "mlir/Linalg/Passes.h"
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Dialect/LoopOps/LoopOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/EDSC/Helpers.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/AffineMap.h"
|
||||
|
@ -28,7 +29,6 @@
|
|||
#include "mlir/Linalg/Utils/Intrinsics.h"
|
||||
#include "mlir/Linalg/Utils/Utils.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/LLVM.h"
|
||||
#include "mlir/Support/STLExtras.h"
|
||||
#include "mlir/Transforms/DialectConversion.h"
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "mlir/Linalg/Utils/Utils.h"
|
||||
#include "mlir/Dialect/LoopOps/LoopOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/EDSC/Helpers.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/AffineMap.h"
|
||||
|
@ -30,7 +31,6 @@
|
|||
#include "mlir/Linalg/Passes.h"
|
||||
#include "mlir/Linalg/Utils/Intrinsics.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/STLExtras.h"
|
||||
#include "mlir/Transforms/FoldUtils.h"
|
||||
|
||||
|
|
|
@ -26,13 +26,13 @@
|
|||
#include "mlir/Dialect/FxpMathOps/FxpMathOps.h"
|
||||
#include "mlir/Dialect/QuantOps/QuantOps.h"
|
||||
#include "mlir/Dialect/QuantOps/QuantTypes.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Matchers.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/Quantizer/Support/ConstraintAnalysisGraph.h"
|
||||
#include "mlir/Quantizer/Support/Metadata.h"
|
||||
#include "mlir/Quantizer/Support/Statistics.h"
|
||||
#include "mlir/Quantizer/Support/UniformConstraints.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
using namespace mlir;
|
||||
using namespace mlir::quantizer;
|
||||
|
|
|
@ -26,13 +26,13 @@
|
|||
#include "mlir/Support/JitRunner.h"
|
||||
|
||||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/ExecutionEngine/ExecutionEngine.h"
|
||||
#include "mlir/ExecutionEngine/MemRefUtils.h"
|
||||
#include "mlir/ExecutionEngine/OptUtils.h"
|
||||
#include "mlir/IR/MLIRContext.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Parser.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassManager.h"
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
#include "mlir/Target/NVVMIR.h"
|
||||
|
||||
#include "mlir/Dialect/GPU/GPUDialect.h"
|
||||
#include "mlir/Dialect/LLVMIR/NVVMDialect.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/LLVMIR/NVVMDialect.h"
|
||||
#include "mlir/Support/FileUtilities.h"
|
||||
#include "mlir/Target/LLVMIR/ModuleTranslation.h"
|
||||
#include "mlir/Translation.h"
|
||||
|
@ -55,7 +55,7 @@ protected:
|
|||
LogicalResult convertOperation(Operation &opInst,
|
||||
llvm::IRBuilder<> &builder) override {
|
||||
|
||||
#include "mlir/LLVMIR/NVVMConversions.inc"
|
||||
#include "mlir/Dialect/LLVMIR/NVVMConversions.inc"
|
||||
|
||||
return LLVM::ModuleTranslation::convertOperation(opInst, builder);
|
||||
}
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
|
||||
#include "mlir/Target/LLVMIR/ModuleTranslation.h"
|
||||
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Support/LLVM.h"
|
||||
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
|
@ -202,7 +202,7 @@ LogicalResult ModuleTranslation::convertOperation(Operation &opInst,
|
|||
return position;
|
||||
};
|
||||
|
||||
#include "mlir/LLVMIR/LLVMConversions.inc"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMConversions.inc"
|
||||
|
||||
// Emit function calls. If the "callee" attribute is present, this is a
|
||||
// direct function call and we also need to look up the remapped function
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Analysis/AffineStructures.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
#include "mlir/Transforms/Utils.h"
|
||||
#include "llvm/ADT/MapVector.h"
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
// =============================================================================
|
||||
|
||||
#include "mlir/Dialect/LoopOps/LoopOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/LoopUtils.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
#include "mlir/Transforms/RegionUtils.h"
|
||||
|
|
|
@ -24,11 +24,11 @@
|
|||
#include "mlir/Analysis/AffineStructures.h"
|
||||
#include "mlir/Analysis/LoopAnalysis.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/AffineMap.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/LoopFusionUtils.h"
|
||||
#include "mlir/Transforms/LoopUtils.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
|
|
|
@ -25,11 +25,11 @@
|
|||
#include "mlir/Analysis/LoopAnalysis.h"
|
||||
#include "mlir/Analysis/SliceAnalysis.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/AffineMap.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/LoopUtils.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
#include "mlir/Transforms/Utils.h"
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
#include "mlir/Transforms/LowerAffine.h"
|
||||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Dialect/LoopOps/LoopOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExprVisitor.h"
|
||||
#include "mlir/IR/BlockAndValueMapping.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/IntegerSet.h"
|
||||
#include "mlir/IR/MLIRContext.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/Functional.h"
|
||||
#include "mlir/Transforms/DialectConversion.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "mlir/Analysis/NestedMatcher.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Analysis/VectorAnalysis.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/EDSC/Builders.h"
|
||||
#include "mlir/EDSC/Helpers.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
|
@ -37,7 +38,6 @@
|
|||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/Functional.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
#include "mlir/VectorOps/VectorOps.h"
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include "mlir/Analysis/SliceAnalysis.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Analysis/VectorAnalysis.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/AffineMap.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
|
@ -36,7 +37,6 @@
|
|||
#include "mlir/IR/OperationSupport.h"
|
||||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/Functional.h"
|
||||
#include "mlir/Support/LLVM.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
#include "mlir/Analysis/AffineAnalysis.h"
|
||||
#include "mlir/Analysis/Dominance.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include <algorithm>
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
#include "mlir/Analysis/AffineAnalysis.h"
|
||||
#include "mlir/Analysis/LoopAnalysis.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/LoopUtils.h"
|
||||
#include "mlir/Transforms/Utils.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
|
|
@ -22,10 +22,10 @@
|
|||
|
||||
#include "mlir/Transforms/FoldUtils.h"
|
||||
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Matchers.h"
|
||||
#include "mlir/IR/Operation.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
using namespace mlir;
|
||||
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/PatternMatch.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/FoldUtils.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
|
|
|
@ -26,13 +26,13 @@
|
|||
#include "mlir/Analysis/AffineStructures.h"
|
||||
#include "mlir/Analysis/LoopAnalysis.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/AffineMap.h"
|
||||
#include "mlir/IR/BlockAndValueMapping.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/IR/Operation.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include "mlir/Analysis/LoopAnalysis.h"
|
||||
#include "mlir/Analysis/SliceAnalysis.h"
|
||||
#include "mlir/Dialect/LoopOps/LoopOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/AffineMap.h"
|
||||
#include "mlir/IR/BlockAndValueMapping.h"
|
||||
|
@ -34,7 +35,6 @@
|
|||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/IR/Operation.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/RegionUtils.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
|
|
|
@ -27,10 +27,10 @@
|
|||
#include "mlir/Analysis/AffineStructures.h"
|
||||
#include "mlir/Analysis/Dominance.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/MathExtras.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
using namespace mlir;
|
||||
|
|
|
@ -26,12 +26,12 @@
|
|||
#include "mlir/Analysis/SliceAnalysis.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Analysis/VectorAnalysis.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Location.h"
|
||||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Support/Functional.h"
|
||||
#include "mlir/Support/LLVM.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
// RUN: mlir-edsc-builder-api-test | FileCheck %s
|
||||
|
||||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/EDSC/Builders.h"
|
||||
#include "mlir/EDSC/Helpers.h"
|
||||
#include "mlir/EDSC/Intrinsics.h"
|
||||
|
@ -28,7 +29,6 @@
|
|||
#include "mlir/IR/Types.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassManager.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/LoopUtils.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
|
||||
// RUN: mlir-sdbm-api-test | FileCheck %s
|
||||
|
||||
#include "mlir/Dialect/SDBM/SDBM.h"
|
||||
#include "mlir/Dialect/SDBM/SDBMDialect.h"
|
||||
#include "mlir/Dialect/SDBM/SDBMExpr.h"
|
||||
#include "mlir/IR/MLIRContext.h"
|
||||
#include "mlir/SDBM/SDBM.h"
|
||||
#include "mlir/SDBM/SDBMDialect.h"
|
||||
#include "mlir/SDBM/SDBMExpr.h"
|
||||
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
|
|
|
@ -16,10 +16,10 @@
|
|||
// =============================================================================
|
||||
|
||||
#include "mlir/AffineOps/AffineOps.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/FoldUtils.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
#include "mlir/Transforms/Utils.h"
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
#include "mlir/Analysis/AffineStructures.h"
|
||||
#include "mlir/Analysis/Passes.h"
|
||||
#include "mlir/Analysis/Utils.h"
|
||||
#include "mlir/Dialect/StandardOps/Ops.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
#include "mlir/Transforms/LoopFusionUtils.h"
|
||||
#include "mlir/Transforms/Passes.h"
|
||||
|
||||
|
|
|
@ -29,9 +29,9 @@
|
|||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"
|
||||
#include "mlir/Dialect/GPU/GPUDialect.h"
|
||||
#include "mlir/Dialect/GPU/Passes.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/IR/Module.h"
|
||||
#include "mlir/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Pass/PassManager.h"
|
||||
#include "mlir/Support/JitRunner.h"
|
||||
|
|
|
@ -15,11 +15,11 @@
|
|||
// limitations under the License.
|
||||
// =============================================================================
|
||||
|
||||
#include "mlir/SDBM/SDBM.h"
|
||||
#include "mlir/Dialect/SDBM/SDBM.h"
|
||||
#include "mlir/Dialect/SDBM/SDBMDialect.h"
|
||||
#include "mlir/Dialect/SDBM/SDBMExpr.h"
|
||||
#include "mlir/IR/AffineExpr.h"
|
||||
#include "mlir/IR/MLIRContext.h"
|
||||
#include "mlir/SDBM/SDBMDialect.h"
|
||||
#include "mlir/SDBM/SDBMExpr.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
|
|
Loading…
Reference in New Issue