/external/llvm-project/flang/include/flang/Optimizer/Dialect/ |
D | FIROpsSupport.h | 21 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/ |
D | PassManagerTest.cpp | 69 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/ |
D | cluster_ops_by_policy_pass.cc | 80 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()
|
D | tpu_compile_op_replication_pass.cc | 80 new_compile_op->getAttr(kDeviceAttr)); in runOnOperation()
|
D | launch_to_device_attribute.cc | 72 auto device_attr = op->getAttr(kDeviceAttr); in AssignDevicesInRegion()
|
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/IR/ |
D | chlo_ops.h | 61 auto getAttr = [&]() -> Attribute { in getConstantLike() 66 return b.create<ConstantLikeOp>(loc, getAttr(), val); in getConstantLike()
|
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/lite/ |
D | tfl_to_std.cc | 51 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/ |
D | tf_saved_model.cc | 248 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/ |
D | AffineOps.h | 110 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/ |
D | Operation.h | 323 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/ |
D | UseOverrideCheck.cpp | 98 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/ |
D | Consumed.cpp | 197 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/ |
D | TestCallGraph.cpp | 23 llvm::errs() << "Testing : " << getOperation().getAttr("test.name") << "\n"; in runOnOperation()
|
/external/clang/lib/Analysis/ |
D | Consumed.cpp | 196 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/ |
D | MicrosoftCXXABI.cpp | 169 MSInheritanceAttr *IA = getAttr<MSInheritanceAttr>(); in getMSInheritanceModel() 181 if (MSVtorDispAttr *VDA = getAttr<MSVtorDispAttr>()) in getMSVtorDispMode()
|
/external/llvm-project/mlir/test/lib/Dialect/SPIRV/ |
D | TestEntryPointAbi.cpp | 47 if (!gpu::GPUDialect::isKernel(gpuFunc) || gpuFunc.getAttr(attrName)) in runOnOperation()
|
/external/llvm-project/mlir/include/mlir/TableGen/ |
D | Pattern.h | 252 static SymbolInfo getAttr(const Operator *op, int index) { in getAttr() function 255 static SymbolInfo getAttr() { in getAttr() function
|
/external/clang/lib/AST/ |
D | MicrosoftCXXABI.cpp | 181 MSInheritanceAttr *IA = getAttr<MSInheritanceAttr>(); in getMSInheritanceModel() 187 if (MSVtorDispAttr *VDA = getAttr<MSVtorDispAttr>()) in getMSVtorDispMode()
|
/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/ |
D | TargetAndABI.h | 61 TargetEnvAttr getAttr() const { return targetAttr; } in getAttr() function
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaCUDA.cpp | 218 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/ |
D | b_frontend_action.cc | 240 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/ |
D | AttributeParser.cpp | 451 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/ |
D | SemaInternal.h | 57 if (auto *Import = D->getAttr<DLLImportAttr>()) in getDLLAttr() 59 if (auto *Export = D->getAttr<DLLExportAttr>()) in getDLLAttr()
|
/external/clang/include/clang/Sema/ |
D | SemaInternal.h | 96 if (auto *Import = D->getAttr<DLLImportAttr>()) in getDLLAttr() 98 if (auto *Export = D->getAttr<DLLExportAttr>()) in getDLLAttr()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CodeGenModule.cpp | 347 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 …]
|