Home
last modified time | relevance | path

Searched refs:MLIRContext (Results 1 – 25 of 466) sorted by relevance

12345678910>>...19

/llvm-project-15.0.7/mlir/lib/IR/
H A DMLIRContext.cpp256 MLIRContext::MLIRContext(Threading setting) in MLIRContext() function in MLIRContext
257 : MLIRContext(DialectRegistry(), setting) {} in MLIRContext()
259 MLIRContext::MLIRContext(const DialectRegistry &registry, Threading setting) in MLIRContext() function in MLIRContext
326 MLIRContext::~MLIRContext() = default;
459 void MLIRContext::loadAllAvailableDialects() { in loadAllAvailableDialects()
486 bool MLIRContext::isMultithreadingEnabled() { in isMultithreadingEnabled()
534 unsigned MLIRContext::getNumThreads() { in getNumThreads()
723 MLIRContext *ctx = dialect.getContext(); in insert()
837 MLIRContext *context) { in getCachedIntegerType()
876 NoneType NoneType::get(MLIRContext *context) { in get()
[all …]
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/Runtime/
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/lib/Optimizer/CodeGen/
H A DDescriptorModel.h33 using TypeBuilderFunc = mlir::Type (*)(mlir::MLIRContext *);
41 return [](mlir::MLIRContext *context) -> mlir::Type {
47 return [](mlir::MLIRContext *context) -> mlir::Type {
53 return [](mlir::MLIRContext *context) -> mlir::Type {
59 return [](mlir::MLIRContext *context) -> mlir::Type {
65 return [](mlir::MLIRContext *context) -> mlir::Type {
71 return [](mlir::MLIRContext *context) -> mlir::Type {
77 return [](mlir::MLIRContext *context) -> mlir::Type {
84 return [](mlir::MLIRContext *context) -> mlir::Type {
91 return [](mlir::MLIRContext *context) -> mlir::Type {
[all …]
/llvm-project-15.0.7/mlir/unittests/IR/
H A DAttributeTest.cpp34 MLIRContext context; in TEST()
59 MLIRContext context; in TEST()
82 MLIRContext context; in TEST()
94 MLIRContext context; in TEST()
103 MLIRContext context; in TEST()
111 MLIRContext context; in TEST()
119 MLIRContext context; in TEST()
127 MLIRContext context; in TEST()
135 MLIRContext context; in TEST()
143 MLIRContext context; in TEST()
[all …]
H A DDialectTest.cpp21 TestDialect(MLIRContext *context) in TestDialect()
28 AnotherTestDialect(MLIRContext *context) in AnotherTestDialect()
34 MLIRContext context; in TEST()
46 SecondTestDialect(MLIRContext *context) in SecondTestDialect()
78 registry.addExtension(+[](MLIRContext *ctx, TestDialect *dialect) { in TEST()
82 MLIRContext context(registry); in TEST()
103 +[](MLIRContext *ctx, SecondTestDialect *dialect) { in TEST()
116 registry.addExtension(+[](MLIRContext *ctx, TestDialect *dialect) { in TEST()
119 MLIRContext context(registry); in TEST()
131 secondRegistry.addExtension(+[](MLIRContext *ctx, TestDialect *dialect) { in TEST()
H A DInterfaceAttachmentTest.cpp60 MLIRContext context; in TEST()
87 MLIRContext other; in TEST()
111 MLIRContext context(registry); in TEST()
130 MLIRContext context; in TEST()
161 MLIRContext initiallyEmpty; in TEST()
192 MLIRContext context; in TEST()
220 MLIRContext context; in TEST()
258 MLIRContext initiallyEmpty; in TEST()
301 MLIRContext context; in TEST()
333 MLIRContext other; in TEST()
[all …]
H A DOperationSupportTest.cpp20 static Operation *createOp(MLIRContext *context, in createOp()
32 MLIRContext context; in TEST()
56 MLIRContext context; in TEST()
84 MLIRContext context; in TEST()
120 MLIRContext context; in TEST()
157 MLIRContext context; in TEST()
188 MLIRContext context; in TEST()
220 MLIRContext context; in TEST()
232 MLIRContext ctx; in TEST()
277 MLIRContext context; in TEST()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DDialectRegistry.h27 using DialectAllocatorFunction = std::function<Dialect *(MLIRContext *)>;
28 using DialectAllocatorFunctionRef = function_ref<Dialect *(MLIRContext *)>;
49 virtual void apply(MLIRContext *context,
75 virtual void apply(MLIRContext *context, DialectsT *...dialects) const = 0;
88 void apply(MLIRContext *context, in apply()
119 static_cast<DialectAllocatorFunction>(([](MLIRContext *ctx) { in insert()
168 void applyExtensions(MLIRContext *ctx) const;
192 void addExtension(void (*extensionFn)(MLIRContext *, DialectsT *...)) { in addExtension() argument
194 std::function<void(MLIRContext *, DialectsT * ...)>(extensionFn)); in addExtension()
199 using ExtensionFnT = std::function<void(MLIRContext *, DialectsT * ...)>; in addExtension()
[all …]
H A DAttributeSupport.h23 class MLIRContext; variable
38 static const AbstractAttribute &lookup(TypeID typeID, MLIRContext *context);
159 void initialize(MLIRContext *context) {} in initialize()
191 static T get(MLIRContext *ctx, Args &&...args) { in get()
202 getWithTypeID(MLIRContext *ctx, TypeID typeID, Args &&...args) { in getWithTypeID()
227 getWithTypeID(MLIRContext *ctx, TypeID typeID) { in getWithTypeID()
240 static LogicalResult mutate(MLIRContext *ctx, typename T::ImplType *impl, in mutate()
249 static void registerAttribute(MLIRContext *ctx) { in registerAttribute()
259 registerAttribute(MLIRContext *ctx, TypeID typeID) { in registerAttribute()
269 registerAttribute(MLIRContext *ctx, TypeID typeID) { in registerAttribute()
[all …]
H A DBuiltinTypes.h44 static FloatType getBF16(MLIRContext *ctx);
45 static FloatType getF16(MLIRContext *ctx);
46 static FloatType getF32(MLIRContext *ctx);
47 static FloatType getF64(MLIRContext *ctx);
48 static FloatType getF80(MLIRContext *ctx);
49 static FloatType getF128(MLIRContext *ctx);
384 inline FloatType FloatType::getBF16(MLIRContext *ctx) { in getBF16()
388 inline FloatType FloatType::getF16(MLIRContext *ctx) { in getF16()
392 inline FloatType FloatType::getF32(MLIRContext *ctx) { in getF32()
396 inline FloatType FloatType::getF64(MLIRContext *ctx) { in getF64()
[all …]
H A DMLIRContext.h55 class MLIRContext {
59 explicit MLIRContext(Threading multithreading = Threading::ENABLED);
60 explicit MLIRContext(const DialectRegistry &registry,
62 ~MLIRContext();
232 MLIRContext(const MLIRContext &) = delete;
233 void operator=(const MLIRContext &) = delete;
H A DTypeSupport.h22 class MLIRContext; variable
36 static const AbstractType &lookup(TypeID typeID, MLIRContext *context);
98 static AbstractType *lookupMutable(TypeID typeID, MLIRContext *context);
169 static T get(MLIRContext *ctx, Args &&...args) { in get()
180 getWithTypeID(MLIRContext *ctx, TypeID typeID, Args &&...args) { in getWithTypeID()
201 getWithTypeID(MLIRContext *ctx, TypeID typeID) { in getWithTypeID()
216 static LogicalResult mutate(MLIRContext *ctx, typename T::ImplType *impl, in mutate()
225 static void registerType(MLIRContext *ctx) { in registerType()
235 registerType(MLIRContext *ctx, TypeID typeID) { in registerType()
245 registerType(MLIRContext *ctx, TypeID typeID) { in registerType()
H A DAffineExpr.h26 class MLIRContext; variable
93 MLIRContext *getContext() const;
251 AffineExpr getAffineDimExpr(unsigned position, MLIRContext *context);
252 AffineExpr getAffineSymbolExpr(unsigned position, MLIRContext *context);
253 AffineExpr getAffineConstantExpr(int64_t constant, MLIRContext *context);
265 MLIRContext *context);
307 void bindDims(MLIRContext *ctx) {} in bindDims()
310 void bindDims(MLIRContext *ctx, AffineExprTy &e, AffineExprTy2 &...exprs) { in bindDims()
316 void bindSymbols(MLIRContext *ctx) {} in bindSymbols()
328 void bindDims(MLIRContext *ctx, AffineExprTy &...exprs) { in bindDims()
[all …]
H A DAffineMap.h35 class MLIRContext; variable
50 static AffineMap get(MLIRContext *context);
55 MLIRContext *context);
65 ArrayRef<AffineExpr> results, MLIRContext *context);
68 static AffineMap getConstantMap(int64_t val, MLIRContext *context);
72 MLIRContext *context);
77 MLIRContext *context);
86 MLIRContext *context);
96 MLIRContext *getContext() const;
357 MLIRContext *getContext() const { return context; } in getContext()
[all …]
H A DThreading.h36 LogicalResult failableParallelForEach(MLIRContext *context, IteratorT begin, in failableParallelForEach()
90 LogicalResult failableParallelForEach(MLIRContext *context, RangeT &&range, in failableParallelForEach()
105 LogicalResult failableParallelForEachN(MLIRContext *context, size_t begin, in failableParallelForEachN()
117 void parallelForEach(MLIRContext *context, IteratorT begin, IteratorT end, in parallelForEach()
130 void parallelForEach(MLIRContext *context, RangeT &&range, FuncT &&func) { in parallelForEach()
141 void parallelFor(MLIRContext *context, size_t begin, size_t end, FuncT &&func) { in parallelFor()
/llvm-project-15.0.7/mlir/test/lib/Dialect/SPIRV/
H A DTestAvailability.cpp120 ConvertToAtomCmpExchangeWeak(MLIRContext *context);
126 ConvertToBitReverse(MLIRContext *context);
132 ConvertToGroupNonUniformBallot(MLIRContext *context);
138 ConvertToModule(MLIRContext *context);
144 ConvertToSubgroupBallot(MLIRContext *context);
151 MLIRContext *context = &getContext(); in runOnOperation()
173 ConvertToAtomCmpExchangeWeak::ConvertToAtomCmpExchangeWeak(MLIRContext *context) in ConvertToAtomCmpExchangeWeak()
194 ConvertToBitReverse::ConvertToBitReverse(MLIRContext *context) in ConvertToBitReverse()
209 MLIRContext *context) in ConvertToGroupNonUniformBallot()
222 ConvertToModule::ConvertToModule(MLIRContext *context) in ConvertToModule()
[all …]
/llvm-project-15.0.7/mlir/unittests/Dialect/Utils/
H A DStructuredOpsUtilsTest.cpp22 MLIRContext context; in TEST()
35 MLIRContext context; in TEST()
48 MLIRContext context; in TEST()
61 MLIRContext context; in TEST()
74 MLIRContext context; in TEST()
87 MLIRContext context; in TEST()
99 MLIRContext context; in TEST()
114 MLIRContext context; in TEST()
127 MLIRContext context; in TEST()
140 MLIRContext context; in TEST()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/AsmParser/
H A DAsmParser.h52 Attribute parseAttribute(llvm::StringRef attrStr, MLIRContext *context);
60 Attribute parseAttribute(llvm::StringRef attrStr, MLIRContext *context,
70 Type parseType(llvm::StringRef typeStr, MLIRContext *context);
77 Type parseType(llvm::StringRef typeStr, MLIRContext *context, size_t &numRead);
85 IntegerSet parseIntegerSet(llvm::StringRef str, MLIRContext *context,
/llvm-project-15.0.7/flang/include/flang/Optimizer/Support/
H A DKindMapping.h57 explicit KindMapping(mlir::MLIRContext *context);
63 explicit KindMapping(mlir::MLIRContext *context, llvm::ArrayRef<KindTy> defs);
68 explicit KindMapping(mlir::MLIRContext *context, llvm::StringRef map,
70 explicit KindMapping(mlir::MLIRContext *context, llvm::StringRef map, in KindMapping()
92 mlir::MLIRContext *getContext() const { return context; } in getContext()
129 mlir::MLIRContext *context;
/llvm-project-15.0.7/mlir/test/lib/Interfaces/TilingInterface/
H A DTestTilingInterface.cpp36 TestTileUsingSCFForOpWithFilter(MLIRContext *context, in TestTileUsingSCFForOpWithFilter()
44 TestTileUsingSCFForOpWithFilter(StringRef opName, MLIRContext *context, in TestTileUsingSCFForOpWithFilter()
75 MLIRContext *context, scf::SCFTilingOptions options, in TestTileConsumerAndFuseProducersUsingSCFForOpWithFilter()
85 StringRef opName, MLIRContext *context, scf::SCFTilingOptions options, in TestTileConsumerAndFuseProducersUsingSCFForOpWithFilter()
144 void addTestPatterns(MLIRContext *context, RewritePatternSet &patterns);
150 addPatternForTiling(MLIRContext *context, RewritePatternSet &patterns, in addPatternForTiling()
160 void TestTilingInterfacePass::addTestPatterns(MLIRContext *context, in addTestPatterns()
205 MLIRContext *context = &getContext(); in runOnOperation()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Tosa/Transforms/
H A DPasses.h24 void populateTosaDecomposeConv2D(MLIRContext *ctx, RewritePatternSet &patterns);
25 void populateTosaDecomposeTransposeConv(MLIRContext *ctx,
27 void populateTosaDecomposeDepthwise(MLIRContext *ctx,
29 void populateTosaFoldConstantTransposePatterns(MLIRContext *ctx,
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DTargetAndABI.h56 MLIRContext *getContext() const;
79 MLIRContext *context);
90 MLIRContext *context);
103 ResourceLimitsAttr getDefaultResourceLimits(MLIRContext *context);
110 TargetEnvAttr getDefaultTargetEnv(MLIRContext *context);
/llvm-project-15.0.7/mlir/lib/Conversion/AsyncToLLVM/
H A DAsyncToLLVM.cpp77 static LLVM::LLVMTokenType tokenType(MLIRContext *ctx) { in tokenType()
87 static FunctionType createTokenFunctionType(MLIRContext *ctx) { in createTokenFunctionType()
142 static FunctionType awaitTokenFunctionType(MLIRContext *ctx) { in awaitTokenFunctionType()
146 static FunctionType awaitValueFunctionType(MLIRContext *ctx) { in awaitValueFunctionType()
151 static FunctionType awaitGroupFunctionType(MLIRContext *ctx) { in awaitGroupFunctionType()
155 static FunctionType executeFunctionType(MLIRContext *ctx) { in executeFunctionType()
186 static FunctionType getNumWorkerThreads(MLIRContext *ctx) { in getNumWorkerThreads()
191 static Type resumeFunctionType(MLIRContext *ctx) { in resumeFunctionType()
210 MLIRContext *ctx = module.getContext(); in addAsyncRuntimeApiDeclarations()
251 MLIRContext *ctx = module.getContext(); in addResumeFunction()
[all …]
/llvm-project-15.0.7/mlir/unittests/Transforms/
H A DDialectConversion.cpp14 static Operation *createOp(MLIRContext *context) { in createOp()
29 MLIRContext context; in TEST()
56 MLIRContext context; in TEST()
75 MLIRContext context; in TEST()
102 MLIRContext context; in TEST()
119 MLIRContext context; in TEST()
/llvm-project-15.0.7/mlir/unittests/Dialect/Quant/
H A DQuantizationUtilsTest.cpp36 Attribute getTestFloatAttr(double value, MLIRContext *ctx) { in getTestFloatAttr()
41 ConcreteAttrClass getTestElementsAttr(MLIRContext *ctx, ArrayRef<int64_t> shape, in getTestElementsAttr()
53 ElementsAttr getTestSparseElementsAttr(MLIRContext *ctx, in getTestSparseElementsAttr()
70 UniformQuantizedType getTestQuantizedType(Type storageType, MLIRContext *ctx) { in getTestQuantizedType()
78 MLIRContext ctx; in TEST()
96 MLIRContext ctx; in TEST()
122 MLIRContext ctx; in TEST()
148 MLIRContext ctx; in TEST()

12345678910>>...19