Home
last modified time | relevance | path

Searched refs:DataLayoutSpecInterface (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DDataLayoutInterfaces.cpp237 static DataLayoutSpecInterface getSpec(Operation *operation) { in getSpec()
243 return DataLayoutSpecInterface(); in getSpec()
251 SmallVectorImpl<DataLayoutSpecInterface> &specs, in collectParentLayouts()
281 static DataLayoutSpecInterface getCombinedDataLayout(Operation *leaf) { in getCombinedDataLayout()
289 SmallVector<DataLayoutSpecInterface> specs; in getCombinedDataLayout()
300 [](DataLayoutSpecInterface iface) { return iface != nullptr; })); in getCombinedDataLayout()
303 if (DataLayoutSpecInterface current = getSpec(leaf)) in getCombinedDataLayout()
312 DataLayoutSpecInterface spec = getSpec(op); in verifyDataLayoutOp()
323 SmallVector<DataLayoutSpecInterface> specs; in verifyDataLayoutOp()
379 SmallVector<DataLayoutSpecInterface> specs; in checkValid()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DDataLayoutInterfaces.h31 class DataLayoutSpecInterface; variable
79 LogicalResult verifyDataLayoutSpec(DataLayoutSpecInterface spec, Location loc);
164 const DataLayoutSpecInterface originalLayout;
168 SmallVector<DataLayoutSpecInterface, 2> layoutStack;
H A DDataLayoutInterfaces.td71 def DataLayoutSpecInterface : AttrInterface<"DataLayoutSpecInterface"> {
99 /*retTy=*/"::mlir::DataLayoutSpecInterface",
101 /*args=*/(ins "::llvm::ArrayRef<::mlir::DataLayoutSpecInterface>":$specs)
196 /*retTy=*/"::mlir::DataLayoutSpecInterface",
/llvm-project-15.0.7/mlir/lib/IR/
H A DBuiltinDialect.cpp93 DataLayoutSpecInterface ModuleOp::getDataLayoutSpec() { in getDataLayoutSpec()
98 if (auto spec = attr.getValue().dyn_cast<DataLayoutSpecInterface>()) in getDataLayoutSpec()
119 DataLayoutSpecInterface layoutSpec; in verify()
121 if (auto spec = na.getValue().dyn_cast<DataLayoutSpecInterface>()) { in verify()
/llvm-project-15.0.7/mlir/include/mlir/Target/LLVMIR/
H A DImport.h29 class DataLayoutSpecInterface; variable
43 DataLayoutSpecInterface translateDataLayout(const llvm::DataLayout &dataLayout,
/llvm-project-15.0.7/mlir/include/mlir/Dialect/DLTI/
H A DTraits.h20 DataLayoutSpecInterface getDataLayoutSpec(Operation *op);
37 DataLayoutSpecInterface getDataLayoutSpec() { in getDataLayoutSpec()
H A DDLTI.h70 DataLayoutSpecInterface::Trait> {
96 DataLayoutSpecAttr combineWith(ArrayRef<DataLayoutSpecInterface> specs) const;
/llvm-project-15.0.7/mlir/unittests/Interfaces/
H A DDataLayoutInterfacesTest.cpp51 DataLayoutSpecInterface::Trait> {
60 combineWith(ArrayRef<DataLayoutSpecInterface> specs) const { in combineWith()
129 DataLayoutSpecInterface getDataLayoutSpec() { in getDataLayoutSpec()
130 return getOperation()->getAttrOfType<DataLayoutSpecInterface>(kAttrName); in getDataLayoutSpec()
174 DataLayoutSpecInterface getDataLayoutSpec() { in getDataLayoutSpec()
175 return getOperation()->getAttrOfType<DataLayoutSpecInterface>(kAttrName); in getDataLayoutSpec()
/llvm-project-15.0.7/mlir/lib/Dialect/DLTI/
H A DDLTI.cpp192 combineOneSpec(DataLayoutSpecInterface spec, in combineOneSpec()
246 DataLayoutSpecAttr::combineWith(ArrayRef<DataLayoutSpecInterface> specs) const { in combineWith()
249 if (llvm::any_of(specs, [](DataLayoutSpecInterface spec) { in combineWith()
257 for (DataLayoutSpecInterface spec : specs) in combineWith()
H A DTraits.cpp26 DataLayoutSpecInterface mlir::impl::getDataLayoutSpec(Operation *op) { in getDataLayoutSpec()
/llvm-project-15.0.7/mlir/lib/Dialect/GPU/Transforms/
H A DKernelOutlining.cpp288 dataLayoutSpec = resultAttr.dyn_cast<DataLayoutSpecInterface>(); in initialize()
380 DataLayoutSpecInterface dataLayoutSpec;
/llvm-project-15.0.7/mlir/docs/
H A DDataLayout.md103 `DataLayoutSpecInterface`, described below. Each entry is itself an attribute
223 `DataLayoutSpecInterface`. It does not implement the entire interface for
289 `DataLayoutSpecInterface` and `DataLayoutEntryInterface`, as well as a dialect
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DBuiltinOps.td80 DataLayoutSpecInterface getDataLayoutSpec();
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DModuleTranslation.cpp57 translateDataLayout(DataLayoutSpecInterface attribute, in translateDataLayout()
1101 if (DataLayoutSpecInterface spec = iface.getDataLayoutSpec()) { in prepareLLVMModule()
1106 if (DataLayoutSpecInterface spec = mod.getDataLayoutSpec()) { in prepareLLVMModule()
H A DConvertFromLLVMIR.cpp94 DataLayoutSpecInterface
1254 DataLayoutSpecInterface dlSpec = in translateLLVMIRToModule()