Home
last modified time | relevance | path

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

12345678

/external/llvm-project/flang/include/flang/Optimizer/Dialect/
DFIROpsSupport.h21 return !load.getAttr("volatile"); in nonVolatileLoad()
37 return op && isaCall(op) && !op->getAttr("pure"); in impureCall()
46 return op && isaCall(op) && op->getAttr("pure"); in pureCall()
/external/llvm-project/mlir/unittests/Pass/
DPassManagerTest.cpp69 ASSERT_TRUE(func.getAttr("isFunc").isa<BoolAttr>()); in TEST()
70 EXPECT_TRUE(func.getAttr("isFunc").cast<BoolAttr>().getValue()); in TEST()
73 ASSERT_TRUE(func.getAttr("isSecret").isa<BoolAttr>()); in TEST()
74 EXPECT_EQ(func.getAttr("isSecret").cast<BoolAttr>().getValue(), isSecret); in TEST()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dcluster_ops_by_policy_pass.cc80 auto device = op->getAttr(kDeviceAttr); in IsOplistMatch()
97 if (curr_op->getAttr(kDeviceAttr) != device) return false; in IsOplistMatch()
146 if (auto device = lastOp->getAttr(kDeviceAttr)) in ClusterMatchedOps()
Dtpu_compile_op_replication_pass.cc80 new_compile_op->getAttr(kDeviceAttr)); in runOnOperation()
Dlaunch_to_device_attribute.cc72 auto device_attr = op->getAttr(kDeviceAttr); in AssignDevicesInRegion()
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/IR/
Dchlo_ops.h61 auto getAttr = [&]() -> Attribute { in getConstantLike()
66 return b.create<ConstantLikeOp>(loc, getAttr(), val); in getConstantLike()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/lite/
Dtfl_to_std.cc51 if (auto extra_attr = op->getAttr(mlir::quant::kVolatileOpAttrName)) { in ConvertMlirQuantOpsToTFLQuantOps()
60 if (auto extra_attr = op->getAttr(mlir::quant::kVolatileOpAttrName)) { in ConvertMlirQuantOpsToTFLQuantOps()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_saved_model.cc248 auto attr = op.getAttr(exported_names_ident); in VerifySavedModelModule()
345 if (module->getAttr("tf_saved_model.under_construction")) continue; in VerifyExportedFunc()
358 if (module->getAttr("tf_saved_model.under_construction")) continue; in VerifyExportedFunc()
386 if (!op->getParentOp()->getAttr("tf_saved_model.semantics")) { in verifyOperationAttribute()
434 return module->getAttr("tf_saved_model.semantics") != nullptr; in HasTfSavedModelSemantics()
/external/llvm-project/mlir/include/mlir/Dialect/Affine/IR/
DAffineOps.h110 return getAttr(getSrcMapAttrName()).cast<AffineMapAttr>(); in getSrcMapAttr()
149 return getAttr(getDstMapAttrName()).cast<AffineMapAttr>(); in getDstMapAttr()
178 return getAttr(getTagMapAttrName()).cast<AffineMapAttr>(); in getTagMapAttr()
292 return getAttr(getTagMapAttrName()).cast<AffineMapAttr>(); in getTagMapAttr()
/external/llvm-project/mlir/include/mlir/IR/
DOperation.h323 Attribute getAttr(Identifier name) { return attrs.get(name); } in getAttr() function
324 Attribute getAttr(StringRef name) { return attrs.get(name); } in getAttr() function
327 return getAttr(name).dyn_cast_or_null<AttrClass>(); in getAttrOfType()
330 return getAttr(name).dyn_cast_or_null<AttrClass>(); in getAttrOfType()
335 bool hasAttr(Identifier name) { return static_cast<bool>(getAttr(name)); } in hasAttr()
336 bool hasAttr(StringRef name) { return static_cast<bool>(getAttr(name)); } in hasAttr()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseOverrideCheck.cpp98 bool HasOverride = Method->getAttr<OverrideAttr>(); in check()
99 bool HasFinal = Method->getAttr<FinalAttr>(); in check()
215 SourceLocation OverrideLoc = Method->getAttr<OverrideAttr>()->getLocation(); in check()
/external/llvm-project/clang/lib/Analysis/
DConsumed.cpp197 QT->getAsCXXRecordDecl()->getAttr<ConsumableAttr>(); in mapConsumableAttrState()
267 switch (FunDecl->getAttr<TestTypestateAttr>()->getTestState()) { in testsFor()
584 const CallableWhenAttr *CWAttr = FunDecl->getAttr<CallableWhenAttr>(); in checkCallability()
633 if (ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) { in handleCall()
647 if (ReturnTypestateAttr *RT = Param->getAttr<ReturnTypestateAttr>()) in handleCall()
666 if (SetTypestateAttr *STA = FunD->getAttr<SetTypestateAttr>()) { in handleCall()
692 if (ReturnTypestateAttr *RTA = Fun->getAttr<ReturnTypestateAttr>()) in propagateReturnType()
780 if (ReturnTypestateAttr *RTA = Constructor->getAttr<ReturnTypestateAttr>()) { in VisitCXXConstructExpr()
861 if (const ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) in VisitParmVarDecl()
1095 const ReturnTypestateAttr *RTA = Param->getAttr<ReturnTypestateAttr>(); in checkParamsForReturnTypestate()
[all …]
/external/llvm-project/mlir/test/lib/Transforms/
DTestCallGraph.cpp23 llvm::errs() << "Testing : " << getOperation().getAttr("test.name") << "\n"; in runOnOperation()
/external/clang/lib/Analysis/
DConsumed.cpp196 QT->getAsCXXRecordDecl()->getAttr<ConsumableAttr>(); in mapConsumableAttrState()
266 switch (FunDecl->getAttr<TestTypestateAttr>()->getTestState()) { in testsFor()
585 const CallableWhenAttr *CWAttr = FunDecl->getAttr<CallableWhenAttr>(); in checkCallability()
636 if (ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) { in handleCall()
652 else if (ReturnTypestateAttr *RT = Param->getAttr<ReturnTypestateAttr>()) in handleCall()
669 if (SetTypestateAttr *STA = FunD->getAttr<SetTypestateAttr>()) { in handleCall()
696 if (ReturnTypestateAttr *RTA = Fun->getAttr<ReturnTypestateAttr>()) in propagateReturnType()
790 if (ReturnTypestateAttr *RTA = Constructor->getAttr<ReturnTypestateAttr>()) { in VisitCXXConstructExpr()
877 if (const ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) in VisitParmVarDecl()
1127 const ReturnTypestateAttr *RTA = Param->getAttr<ReturnTypestateAttr>(); in checkParamsForReturnTypestate()
[all …]
/external/llvm-project/clang/lib/AST/
DMicrosoftCXXABI.cpp169 MSInheritanceAttr *IA = getAttr<MSInheritanceAttr>(); in getMSInheritanceModel()
181 if (MSVtorDispAttr *VDA = getAttr<MSVtorDispAttr>()) in getMSVtorDispMode()
/external/llvm-project/mlir/test/lib/Dialect/SPIRV/
DTestEntryPointAbi.cpp47 if (!gpu::GPUDialect::isKernel(gpuFunc) || gpuFunc.getAttr(attrName)) in runOnOperation()
/external/llvm-project/mlir/include/mlir/TableGen/
DPattern.h252 static SymbolInfo getAttr(const Operator *op, int index) { in getAttr() function
255 static SymbolInfo getAttr() { in getAttr() function
/external/clang/lib/AST/
DMicrosoftCXXABI.cpp181 MSInheritanceAttr *IA = getAttr<MSInheritanceAttr>(); in getMSInheritanceModel()
187 if (MSVtorDispAttr *VDA = getAttr<MSVtorDispAttr>()) in getMSVtorDispMode()
/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/
DTargetAndABI.h61 TargetEnvAttr getAttr() const { return targetAttr; } in getAttr() function
/external/llvm-project/clang/lib/Sema/
DSemaCUDA.cpp218 if (auto *A = D->getAttr<AttrT>()) in hasImplicitAttr()
293 (HasD && !MemberDecl->getAttr<CUDADeviceAttr>()->isImplicit()) || in inferCUDATargetForImplicitSpecialMember()
294 (HasH && !MemberDecl->getAttr<CUDAHostAttr>()->isImplicit()); in inferCUDATargetForImplicitSpecialMember()
842 if (AttrTy *Attribute = TemplateFD.getAttr<AttrTy>()) { in copyAttrIfPresent()
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.cc240 if (SectionAttr *A = Ref->getDecl()->getAttr<SectionAttr>()) { in VisitCallExpr()
289 if (SectionAttr *A = Ref->getDecl()->getAttr<SectionAttr>()) { in assignsExtPtr()
752 if (SectionAttr *A = Ref->getDecl()->getAttr<SectionAttr>()) { in VisitCallExpr()
888 if (AsmLabelAttr *A = Decl->getAttr<AsmLabelAttr>()) { in VisitCallExpr()
1013 if (DeprecatedAttr *A = Base->getDecl()->getAttr<DeprecatedAttr>()) { in VisitBinaryOperator()
1043 if (DeprecatedAttr *A = Ref->getDecl()->getAttr<DeprecatedAttr>()) { in VisitImplicitCastExpr()
1107 if (SectionAttr *A = Decl->getAttr<SectionAttr>()) { in VisitVarDecl()
1251 if (DeprecatedAttr *DA = RD->getAttr<DeprecatedAttr>()) { in VisitVarDecl()
/external/llvm-project/mlir/lib/Parser/
DAttributeParser.cpp451 DenseElementsAttr getAttr(llvm::SMLoc loc, ShapedType type);
517 DenseElementsAttr TensorLiteralParser::getAttr(llvm::SMLoc loc, in getAttr() function in TensorLiteralParser
841 return literalParser.getAttr(loc, type); in parseDenseElementsAttr()
968 auto indices = indiceParser.getAttr(indicesLoc, indicesType); in parseSparseElementsAttr()
978 auto values = valuesParser.getAttr(valuesLoc, valuesType); in parseSparseElementsAttr()
/external/llvm-project/clang/include/clang/Sema/
DSemaInternal.h57 if (auto *Import = D->getAttr<DLLImportAttr>()) in getDLLAttr()
59 if (auto *Export = D->getAttr<DLLExportAttr>()) in getDLLAttr()
/external/clang/include/clang/Sema/
DSemaInternal.h96 if (auto *Import = D->getAttr<DLLImportAttr>()) in getDLLAttr()
98 if (auto *Export = D->getAttr<DLLExportAttr>()) in getDLLAttr()
/external/llvm-project/clang/lib/CodeGen/
DCodeGenModule.cpp347 if (const SectionAttr *SA = D->getAttr<SectionAttr>()) { in checkAliases()
1064 if (const TLSModelAttr *Attr = D.getAttr<TLSModelAttr>()) { in setTLSMode()
1151 FD->getAttr<CPUSpecificAttr>(), in getMangledNameImpl()
1155 AppendTargetMangling(CGM, FD->getAttr<TargetAttr>(), Out); in getMangledNameImpl()
1559 const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); in GenOpenCLArgMetadata()
1834 const auto *TD = FD ? FD->getAttr<TargetAttr>() : nullptr; in GetCPUAndFeaturesAttributes()
1835 const auto *SD = FD ? FD->getAttr<CPUSpecificAttr>() : nullptr; in GetCPUAndFeaturesAttributes()
1890 if (auto *SA = D->getAttr<PragmaClangBSSSectionAttr>()) in setNonAliasAttributes()
1892 if (auto *SA = D->getAttr<PragmaClangDataSectionAttr>()) in setNonAliasAttributes()
1894 if (auto *SA = D->getAttr<PragmaClangRodataSectionAttr>()) in setNonAliasAttributes()
[all …]

12345678