Home
last modified time | relevance | path

Searched refs:mlir (Results 1 – 25 of 2630) sorted by relevance

12345678910>>...106

/llvm-project-15.0.7/utils/bazel/llvm-project-overlay/mlir/test/
H A DBUILD.bazel35 "//mlir:IR",
37 "//mlir:Pass",
99 tblgen = "//mlir:mlir-tblgen",
136 tblgen = "//mlir:mlir-tblgen",
158 tblgen = "//mlir:mlir-tblgen",
185 tblgen = "//mlir:mlir-tblgen",
215 tblgen = "//mlir:mlir-tblgen",
232 "//mlir:IR",
261 "//mlir:IR",
287 "//mlir:IR",
[all …]
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/Runtime/
H A DReduction.h63 mlir::Value resultBox, mlir::Value maskBox, mlir::Value dim,
74 mlir::Value resultBox, mlir::Value arrayBox, mlir::Value maskBox,
80 mlir::Value resultBox, mlir::Value arrayBox, mlir::Value dim,
81 mlir::Value maskBox, mlir::Value kind, mlir::Value back);
86 mlir::Value resultBox, mlir::Value arrayBox, mlir::Value maskBox,
92 mlir::Value resultBox, mlir::Value arrayBox, mlir::Value dim,
93 mlir::Value maskBox, mlir::Value kind, mlir::Value back);
110 mlir::Value resultBox, mlir::Value arrayBox, mlir::Value dim,
128 mlir::Value resultBox, mlir::Value arrayBox, mlir::Value dim,
140 mlir::Value resultBox, mlir::Value arrayBox, mlir::Value dim,
[all …]
H A DCharacter.h31 mlir::Value resultBox, mlir::Value stringBox);
42 mlir::Value resultBox, mlir::Value stringBox);
57 mlir::Value lhsLen, mlir::Value rhsBuff,
64 mlir::Value stringBase, mlir::Value stringLen,
82 mlir::Value resultBox, mlir::Value stringBox,
90 mlir::Value resultBox, mlir::Value stringBox);
97 mlir::Value setBox, mlir::Value backBox,
104 mlir::Value stringBase, mlir::Value stringLen,
105 mlir::Value setBase, mlir::Value setLen, mlir::Value back);
112 mlir::Value setBox, mlir::Value backBox,
[all …]
H A DTransformational.h23 mlir::Value resultBox, mlir::Value arrayBox,
24 mlir::Value shiftBox, mlir::Value dimBox);
31 mlir::Value resultBox, mlir::Value arrayBox,
32 mlir::Value shiftBox, mlir::Value boundBox, mlir::Value dimBox);
39 mlir::Value matrixABox, mlir::Value matrixBBox,
43 mlir::Value resultBox, mlir::Value arrayBox, mlir::Value maskBox,
47 mlir::Value resultBox, mlir::Value sourceBox,
48 mlir::Value shapeBox, mlir::Value padBox, mlir::Value orderBox);
51 mlir::Value resultBox, mlir::Value sourceBox, mlir::Value dim,
58 mlir::Value resultBox, mlir::Value vectorBox,
[all …]
H A DNumeric.h22 mlir::Value genExponent(fir::FirOpBuilder &builder, mlir::Location loc,
23 mlir::Type resultType, mlir::Value x);
26 mlir::Value genFraction(fir::FirOpBuilder &builder, mlir::Location loc,
30 mlir::Value genNearest(fir::FirOpBuilder &builder, mlir::Location loc,
31 mlir::Value x, mlir::Value s);
34 mlir::Value genRRSpacing(fir::FirOpBuilder &builder, mlir::Location loc,
38 mlir::Value genScale(fir::FirOpBuilder &builder, mlir::Location loc,
39 mlir::Value x, mlir::Value i);
47 mlir::Value precision, mlir::Value range,
52 mlir::Value x, mlir::Value i);
[all …]
H A DRTBuilder.h63 return [](mlir::MLIRContext *context) -> mlir::Type {
69 return [](mlir::MLIRContext *context) -> mlir::Type {
75 return [](mlir::MLIRContext *context) -> mlir::Type {
82 return [](mlir::MLIRContext *context) -> mlir::Type {
92 return [](mlir::MLIRContext *context) -> mlir::Type {
98 return [](mlir::MLIRContext *context) -> mlir::Type {
104 return [](mlir::MLIRContext *context) -> mlir::Type {
110 return [](mlir::MLIRContext *context) -> mlir::Type {
116 return [](mlir::MLIRContext *context) -> mlir::Type {
123 return [](mlir::MLIRContext *context) -> mlir::Type {
[all …]
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DFIRBuilder.h74 mlir::Value convertWithSemantics(mlir::Location loc, mlir::Type toTy,
124 mlir::Value createRealConstant(mlir::Location loc, mlir::Type realType,
128 mlir::Value createRealConstant(mlir::Location loc, mlir::Type realType,
138 mlir::Value allocateLocal(mlir::Location loc, mlir::Type ty,
143 mlir::Value allocateLocal(mlir::Location loc, mlir::Type ty,
152 mlir::Value createTemporary(mlir::Location loc, mlir::Type type,
159 mlir::Value createTemporary(mlir::Location loc, mlir::Type type, in createTemporary()
164 mlir::Value createTemporary(mlir::Location loc, mlir::Type type, in createTemporary()
169 mlir::Value createTemporary(mlir::Location loc, mlir::Type type, in createTemporary()
247 mlir::Value createConvert(mlir::Location loc, mlir::Type toTy,
[all …]
H A DCharacter.h68 mlir::Value createEmboxChar(mlir::Value addr, mlir::Value len);
81 std::pair<mlir::Value, mlir::Value> createUnboxChar(mlir::Value boxChar);
164 mlir::Value createSingletonFromCode(mlir::Value code, int kind);
166 mlir::Value extractCodeFromSingleton(mlir::Value singleton);
172 mlir::Value getLength(mlir::Value memref);
177 mlir::Value readLengthFromBox(mlir::Value box);
184 mlir::Value createElementAddr(mlir::Value buffer, mlir::Value index);
185 mlir::Value createLoadCharAt(mlir::Value buff, mlir::Value index);
186 void createStoreCharAt(mlir::Value str, mlir::Value index, mlir::Value c);
204 mlir::Type getCharacterProcedureTupleType(mlir::Type funcPointerType);
[all …]
/llvm-project-15.0.7/utils/bazel/llvm-project-overlay/mlir/python/
H A DBUILD.bazel114 tblgen = "//mlir:mlir-tblgen",
158 tblgen = "//mlir:mlir-tblgen",
225 tblgen = "//mlir:mlir-tblgen",
269 tblgen = "//mlir:mlir-tblgen",
312 tblgen = "//mlir:mlir-tblgen",
353 tblgen = "//mlir:mlir-tblgen",
395 tblgen = "//mlir:mlir-tblgen",
437 tblgen = "//mlir:mlir-tblgen",
480 tblgen = "//mlir:mlir-tblgen",
523 tblgen = "//mlir:mlir-tblgen",
[all …]
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DCodeGen.cpp122 mlir::Value integerCast(mlir::Location loc, in integerCast()
140 mlir::Value getValueFromBox(mlir::Location loc, mlir::Value box, in getValueFromBox()
172 loadFromOffset(mlir::Location loc, mlir::Value a, mlir::LLVM::ConstantOp c0, in loadFromOffset()
195 loadBaseAddrFromBox(mlir::Location loc, mlir::Type ty, mlir::Value box, in loadBaseAddrFromBox()
206 loadElementSizeFromBox(mlir::Location loc, mlir::Type ty, mlir::Value box, in loadElementSizeFromBox()
246 mlir::Value genBoxAttributeCheck(mlir::Location loc, mlir::Value box, in genBoxAttributeCheck()
262 mlir::LLVM::GEPOp genGEP(mlir::Location loc, mlir::Type ty, in genGEP()
420 genExtractValueWithIndex(mlir::Location loc, mlir::Value tuple, mlir::Type ty, in genExtractValueWithIndex()
1050 mlir::Value genTypeSizeInBytes(mlir::Location loc, mlir::Type idxTy, in genTypeSizeInBytes()
1191 mlir::Value len) -> std::tuple<mlir::Value, mlir::Value> { in __anon447c3e180d02()
[all …]
/llvm-project-15.0.7/mlir/test/mlir-tblgen/
H A Dop-decl-and-defs.td96 …mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type r, ::mlir::TypeRange s…
98 …mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type r, ::mlir::TypeRange s…
241 … static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRa…
251 …ECK: static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Ty…
253 …atic void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange…
263 …ECK: static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Ty…
265 …atic void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange…
296 …tic void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type r, ::…
297 …ECK: static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Va…
298 … build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTy…
[all …]
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIROps.cpp157 static mlir::Type wrapAllocaResultType(mlir::Type intype) { in wrapAllocaResultType()
168 mlir::Type fir::AllocaOp::getRefTy(mlir::Type ty) { in getRefTy()
242 mlir::ParseResult fir::AllocaOp::parse(mlir::OpAsmParser &parser, in parse()
270 static mlir::Type wrapAllocMemResultType(mlir::Type intype) { in wrapAllocMemResultType()
284 mlir::Type fir::AllocMemOp::getRefTy(mlir::Type ty) { in getRefTy()
409 static mlir::Type adjustedElementType(mlir::Type t) { in adjustedElementType()
764 static mlir::ParseResult parseCmpOp(mlir::OpAsmParser &parser, in parseCmpOp()
1908 mlir::ParseResult fir::LoadOp::getElementOf(mlir::Type &ele, mlir::Type ref) { in getElementOf()
2189 static mlir::Type getBoxScalarEleTy(mlir::Type boxTy) { in getBoxScalarEleTy()
3116 mlir::Type fir::StoreOp::elementType(mlir::Type refType) { in elementType()
[all …]
H A DFIRType.cpp53 mlir::Type ty; in parseTypeSingleton()
201 mlir::Type dyn_cast_ptrEleTy(mlir::Type t) { in dyn_cast_ptrEleTy()
202 return llvm::TypeSwitch<mlir::Type, mlir::Type>(t) in dyn_cast_ptrEleTy()
205 .Default([](mlir::Type) { return mlir::Type{}; }); in dyn_cast_ptrEleTy()
208 mlir::Type dyn_cast_ptrOrBoxEleTy(mlir::Type t) { in dyn_cast_ptrOrBoxEleTy()
209 return llvm::TypeSwitch<mlir::Type, mlir::Type>(t) in dyn_cast_ptrOrBoxEleTy()
218 .Default([](mlir::Type) { return mlir::Type{}; }); in dyn_cast_ptrOrBoxEleTy()
286 mlir::Type unwrapAllRefAndSeqType(mlir::Type ty) { in unwrapAllRefAndSeqType()
297 mlir::Type unwrapSeqOrBoxedSeqType(mlir::Type ty) { in unwrapSeqOrBoxedSeqType()
348 mlir::Type BoxProcType::parse(mlir::AsmParser &parser) { in parse()
[all …]
/llvm-project-15.0.7/mlir/tools/mlir-opt/
H A Dmlir-opt.cpp28 using namespace mlir;
31 namespace mlir { namespace
153 mlir::test::registerInliner(); in registerTestPasses()
154 mlir::test::registerMemRefBoundCheck(); in registerTestPasses()
155 mlir::test::registerPatternsTestPass(); in registerTestPasses()
182 mlir::test::registerTestInterfaces(); in registerTestPasses()
190 mlir::test::registerTestLoopFusion(); in registerTestPasses()
198 mlir::test::registerTestOpaqueLoc(); in registerTestPasses()
199 mlir::test::registerTestPadFusion(); in registerTestPasses()
201 mlir::test::registerTestPDLLPasses(); in registerTestPasses()
[all …]
/llvm-project-15.0.7/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/
H A Dmlir-support.cpp13 mlir::Type IndexType = mlir::IndexType::get(&Context);
15 mlir::IntegerType::get(&Context, 3, mlir::IntegerType::Unsigned);
16 mlir::Type FloatType = mlir::Float32Type::get(&Context);
17 mlir::Type MemRefType = mlir::MemRefType::get({4, 5}, FloatType);
19 mlir::Type VectorType = mlir::VectorType::get({1, 2}, FloatType);
34 mlir::Attribute UnitAttr = mlir::UnitAttr::get(&Context);
35 mlir::Attribute FloatAttr = mlir::FloatAttr::get(FloatType, 1.0);
36 mlir::Attribute IntegerAttr = mlir::IntegerAttr::get(IntegerType, 10);
37 mlir::Attribute TypeAttr = mlir::TypeAttr::get(IndexType);
39 mlir::Attribute StringAttr = mlir::StringAttr::get(&Context, "foo");
[all …]
H A Dmlir-support.gdb7 # REQUIRES: mlir
27 # CHECK: typeID = mlir::TypeID::get<mlir::IndexType>()
31 # CHECK: typeID = mlir::TypeID::get<mlir::IntegerType>()
36 # CHECK: typeID = mlir::TypeID::get<mlir::Float32Type>()
40 # CHECK: typeID = mlir::TypeID::get<mlir::MemRefType>()
50 # CHECK: typeID = mlir::TypeID::get<mlir::VectorType>()
55 # CHECK: typeID = mlir::TypeID::get<mlir::TupleType>()
85 # CHECK: typeID = mlir::TypeID::get<mlir::OpaqueLoc>()
91 # CHECK: typeID = mlir::TypeID::get<mlir::NameLoc>()
105 # CHECK: typeID = mlir::TypeID::get<mlir::FusedLoc>()
[all …]
/llvm-project-15.0.7/flang/include/flang/Optimizer/Support/
H A DInitFIR.h28 mlir::AffineDialect, FIROpsDialect, mlir::acc::OpenACCDialect, \
29 mlir::omp::OpenMPDialect, mlir::scf::SCFDialect, \
30 mlir::arith::ArithmeticDialect, mlir::cf::ControlFlowDialect, \
31 mlir::func::FuncDialect, mlir::vector::VectorDialect, \
32 mlir::math::MathDialect
61 mlir::registerCanonicalizerPass(); in registerMLIRPassesForFortranTools()
62 mlir::registerCSEPass(); in registerMLIRPassesForFortranTools()
67 mlir::registerPrintOpStatsPass(); in registerMLIRPassesForFortranTools()
68 mlir::registerInlinerPass(); in registerMLIRPassesForFortranTools()
69 mlir::registerSCCPPass(); in registerMLIRPassesForFortranTools()
[all …]
/llvm-project-15.0.7/flang/lib/Lower/
H A DIntrinsicCall.cpp448 mlir::Value genAbs(mlir::Type, llvm::ArrayRef<mlir::Value>);
454 mlir::Value genAint(mlir::Type, llvm::ArrayRef<mlir::Value>);
482 mlir::Value genDim(mlir::Type, llvm::ArrayRef<mlir::Value>);
500 mlir::Value genIand(mlir::Type, llvm::ArrayRef<mlir::Value>);
509 mlir::Value genIeor(mlir::Type, llvm::ArrayRef<mlir::Value>);
511 mlir::Value genIor(mlir::Type, llvm::ArrayRef<mlir::Value>);
519 mlir::Value genMask(mlir::Type, llvm::ArrayRef<mlir::Value>);
527 mlir::Value genMod(mlir::Type, llvm::ArrayRef<mlir::Value>);
531 mlir::Value genNint(mlir::Type, llvm::ArrayRef<mlir::Value>);
532 mlir::Value genNot(mlir::Type, llvm::ArrayRef<mlir::Value>);
[all …]
/llvm-project-15.0.7/flang/include/flang/Optimizer/Dialect/
H A DFIRType.h38 namespace mlir {
97 mlir::Type dyn_cast_ptrEleTy(mlir::Type t);
101 mlir::Type dyn_cast_ptrOrBoxEleTy(mlir::Type t);
110 return t.isa<mlir::IndexType, mlir::IntegerType, fir::IntegerType>(); in isa_integer()
113 mlir::Type parseFirType(FIROpsDialect *, mlir::DialectAsmParser &parser);
183 inline mlir::Type unwrapSequenceType(mlir::Type t) { in unwrapSequenceType()
189 inline mlir::Type unwrapRefType(mlir::Type t) { in unwrapRefType()
197 inline mlir::Type unwrapPassByRefType(mlir::Type t) { in unwrapPassByRefType()
210 mlir::Type unwrapSeqOrBoxedSeqType(mlir::Type ty);
215 mlir::Type unwrapAllRefAndSeqType(mlir::Type ty);
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DDialect.cpp23 using namespace mlir;
94 static mlir::ParseResult parseBinaryOp(mlir::OpAsmParser &parser, in parseBinaryOp()
161 mlir::ParseResult ConstantOp::parse(mlir::OpAsmParser &parser, in parse()
181 static mlir::LogicalResult verifyConstantForType(mlir::Type type, in verifyConstantForType()
255 mlir::Value lhs, mlir::Value rhs) { in build()
260 mlir::ParseResult AddOp::parse(mlir::OpAsmParser &parser, in parse()
306 mlir::ParseResult FuncOp::parse(mlir::OpAsmParser &parser, in parse()
311 [](mlir::Builder &builder, llvm::ArrayRef<mlir::Type> argTypes, in parse()
364 mlir::Value lhs, mlir::Value rhs) { in build()
369 mlir::ParseResult MulOp::parse(mlir::OpAsmParser &parser, in parse()
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch3/mlir/
H A DDialect.cpp21 using namespace mlir;
22 using namespace mlir::toy;
45 static mlir::ParseResult parseBinaryOp(mlir::OpAsmParser &parser, in parseBinaryOp()
112 mlir::ParseResult ConstantOp::parse(mlir::OpAsmParser &parser, in parse()
165 void AddOp::build(mlir::OpBuilder &builder, mlir::OperationState &state, in build()
166 mlir::Value lhs, mlir::Value rhs) { in build()
171 mlir::ParseResult AddOp::parse(mlir::OpAsmParser &parser, in parse()
190 mlir::ParseResult FuncOp::parse(mlir::OpAsmParser &parser, in parse()
195 [](mlir::Builder &builder, llvm::ArrayRef<mlir::Type> argTypes, in parse()
229 mlir::Value lhs, mlir::Value rhs) { in build()
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch2/mlir/
H A DDialect.cpp21 using namespace mlir;
22 using namespace mlir::toy;
45 static mlir::ParseResult parseBinaryOp(mlir::OpAsmParser &parser, in parseBinaryOp()
112 mlir::ParseResult ConstantOp::parse(mlir::OpAsmParser &parser, in parse()
165 void AddOp::build(mlir::OpBuilder &builder, mlir::OperationState &state, in build()
166 mlir::Value lhs, mlir::Value rhs) { in build()
171 mlir::ParseResult AddOp::parse(mlir::OpAsmParser &parser, in parse()
203 mlir::ParseResult FuncOp::parse(mlir::OpAsmParser &parser, in parse()
208 [](mlir::Builder &builder, llvm::ArrayRef<mlir::Type> argTypes, in parse()
229 mlir::Value lhs, mlir::Value rhs) { in build()
[all …]
/llvm-project-15.0.7/flang/lib/Optimizer/Transforms/
H A DArrayValueCopy.cpp28 using namespace mlir;
498 if (auto addi = mlir::dyn_cast<mlir::arith::AddIOp>(op2)) in mutuallyExclusiveSliceRange()
504 if (auto subi = mlir::dyn_cast<mlir::arith::SubIOp>(op1)) in mutuallyExclusiveSliceRange()
778 static mlir::Type getEleTy(mlir::Type ty) { in getEleTy()
869 static mlir::Type toRefType(mlir::Type ty) { in toRefType()
883 static mlir::Value genCoorOp(mlir::PatternRewriter &rewriter, in genCoorOp()
943 mlir::Value dst, mlir::Value src, mlir::Value shapeOp, in genArrayCopy()
1091 mlir::Value referenceToClone(mlir::Location loc, in referenceToClone()
1134 std::pair<mlir::Value, mlir::Value>
1356 mlir::emitError(mlir::UnknownLoc::get(context), in runOnOperation()
[all …]
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/Runtime/
H A DNumeric.cpp211 mlir::Location loc, mlir::Type resultType, in genExponent()
213 mlir::func::FuncOp func; in genExponent()
250 mlir::Location loc, mlir::Value x) { in genFraction()
275 mlir::Location loc, mlir::Value x, in genNearest()
300 mlir::Type boolTy = mlir::IntegerType::get(builder.getContext(), 1); in genNearest()
304 mlir::Value positive = in genNearest()
313 mlir::Location loc, mlir::Value x) { in genRRSpacing()
339 mlir::Location loc, mlir::Value x, in genScale()
393 auto getArgKinds = [&](mlir::Value arg, int argKindIndex) -> mlir::Value { in genSelectedRealKind()
418 mlir::Location loc, mlir::Value x, in genSetExponent()
[all …]
/llvm-project-15.0.7/utils/bazel/llvm-project-overlay/mlir/unittests/
H A DBUILD.bazel22 "//mlir:IR",
41 "//mlir:IR",
75 "//mlir:IR",
76 "//mlir:Pass",
89 "//mlir:IR",
223 tblgen = "//mlir:mlir-tblgen",
238 tblgen = "//mlir:mlir-tblgen",
263 "//mlir:IR",
279 "//mlir:IR",
303 "//mlir:IR",
[all …]

12345678910>>...106