Home
last modified time | relevance | path

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

/external/llvm-project/mlir/include/mlir/IR/
DMLIRContext.h57 Dialect *getLoadedDialect(StringRef name);
62 T *getLoadedDialect() { in getLoadedDialect() function
63 return static_cast<T *>(getLoadedDialect(T::getDialectNamespace())); in getLoadedDialect()
DFunctionSupport.h486 if (auto *dialect = ctx->getLoadedDialect(dialectNamePair.first)) { in verifyTrait()
502 if (auto *dialect = ctx->getLoadedDialect(dialectNamePair.first)) { in verifyTrait()
/external/llvm-project/mlir/lib/IR/
DVerifier.cpp53 return ctx->getLoadedDialect(dialectNamePair.first); in getDialectForAttribute()
221 if (auto *dialect = ctx->getLoadedDialect(dialectPrefix)) in verifyOperation()
DMLIRContext.cpp444 Dialect *MLIRContext::getLoadedDialect(StringRef name) { in getLoadedDialect() function in MLIRContext
451 Dialect *dialect = getLoadedDialect(name); in getOrLoadDialect()
DOperation.cpp224 return getContext()->getLoadedDialect(getName().getDialect()); in getDialect()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dtf_device_assignment.cc37 Dialect* tf = getContext().getLoadedDialect<TensorFlowDialect>(); in runOnFunction()
Dlaunch_to_device_attribute.cc122 const Dialect* tf_dialect = getContext().getLoadedDialect("tf"); in runOnFunction()
Dtf_device_replication_pass.cc41 const Dialect *tf_dialect = getContext().getLoadedDialect("tf"); in runOnOperation()
Dreplicate_to_island.cc300 const Dialect* tf_dialect = getContext().getLoadedDialect("tf"); in runOnFunction()
Dmark_ops_for_outside_compilation.cc323 const Dialect* tf_dialect = getContext().getLoadedDialect("tf"); in runOnOperation()
Dshape_inference.cc619 : tf_dialect_(context->getLoadedDialect<TensorFlowDialect>()), in ShapeInference()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dir_emission_utils.cc658 CHECK(op->getDialect() == op->getContext()->getLoadedDialect("lmhlo")); in PartitionLmhloOperandsAndOutputs()
676 if (op->getDialect() == op->getContext()->getLoadedDialect("lmhlo")) { in GetHloOperands()
685 if (op->getDialect() == op->getContext()->getLoadedDialect("mhlo")) { in GetHloOperands()
696 if (op->getDialect() == op->getContext()->getLoadedDialect("lmhlo")) { in GetHloOutputs()
704 if (op->getDialect() == op->getContext()->getLoadedDialect("mhlo")) { in GetHloOutputs()
Dir_emitter_unnested.cc235 CHECK(op->getDialect() == op->getContext()->getLoadedDialect("lmhlo")); in LmhloOpIsElementwise()
258 CHECK(op->getDialect() == op->getContext()->getLoadedDialect("lmhlo")); in MayPreventVectorization()
267 CHECK(instr.getDialect() == instr.getContext()->getLoadedDialect("mhlo")) in MayPreventVectorization()
/external/tensorflow/tensorflow/compiler/mlir/lite/utils/
Dconstant_utils.cc49 auto dialect = etype.getContext()->getLoadedDialect("tf"); in CreateConstOpWithSingleValue()
Dperception_ops_utils.cc40 return OpaqueElementsAttr::get(builder->getContext()->getLoadedDialect("tfl"), in CustomOption()
Dnms_utils.cc35 return OpaqueElementsAttr::get(builder->getContext()->getLoadedDialect("tfl"), in CustomOption()
Dtftext_utils.cc60 return OpaqueElementsAttr::get(builder->getContext()->getLoadedDialect("tfl"), in CustomOption()
/external/tensorflow/tensorflow/compiler/mlir/tfr/passes/
Dcanonicalize.cc157 mlir::Dialect *tf = context->getLoadedDialect<mlir::TF::TensorFlowDialect>(); in populateCanonicalizationPatterns()
/external/llvm-project/mlir/test/lib/Dialect/SPIRV/
DTestAvailability.cpp33 Dialect *spvDialect = getContext().getLoadedDialect("spv"); in runOnFunction()
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_operator.cc252 OpaqueElementsAttr::get(builder.getContext()->getLoadedDialect("tfl"), in CustomOptionsToAttributes()
Dflatbuffer_import.cc554 auto dialect = elem_type.getContext()->getLoadedDialect("tf"); in BuildConstOp()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dconvert_tensor.cc164 auto* dialect = builder->getContext()->getLoadedDialect("tf"); in ConvertTensor()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dexport_graphdef.cc712 auto tf_dialect = module.getContext()->getLoadedDialect("tf"); in Convert()
785 Dialect* tf_dialect = func.getContext()->getLoadedDialect("tf"); in ConvertMlirFunctionToFunctionLibraryDef()
/external/llvm-project/mlir/lib/Parser/
DParser.cpp775 if (!getContext()->getLoadedDialect(dialectName) && in parseGenericOperation()
1614 if (!getContext()->getLoadedDialect(dialectName) && in parseCustomOperation()
/external/llvm-project/mlir/lib/Target/LLVMIR/
DModuleTranslation.cpp308 ompDialect(module->getContext()->getLoadedDialect("omp")), in ModuleTranslation()