| /openbsd/src/gnu/llvm/clang/examples/Attribute/ |
| D | Attribute.cpp | 38 bool diagAppertainsToDecl(Sema &S, const ParsedAttr &Attr, in diagAppertainsToDecl() 42 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str) in diagAppertainsToDecl() 43 << Attr << "functions"; in diagAppertainsToDecl() 50 const ParsedAttr &Attr) const override { in handleDeclAttribute() 56 S.Diag(Attr.getLoc(), ID); in handleDeclAttribute() 62 if (Attr.getNumArgs() > 3) { in handleDeclAttribute() 66 S.Diag(Attr.getLoc(), ID); in handleDeclAttribute() 70 if (Attr.getNumArgs() > 0) { in handleDeclAttribute() 71 auto *Arg0 = Attr.getArgAsExpr(0); in handleDeclAttribute() 78 S.Diag(Attr.getLoc(), ID); in handleDeclAttribute() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Analysis/ |
| D | AliasAnalysisSummary.cpp | 33 bool hasUnknownAttr(AliasAttrs Attr) { return Attr.test(AttrUnknownIndex); } in hasUnknownAttr() argument 36 bool hasCallerAttr(AliasAttrs Attr) { return Attr.test(AttrCaller); } in hasCallerAttr() argument 37 bool hasUnknownOrCallerAttr(AliasAttrs Attr) { in hasUnknownOrCallerAttr() argument 38 return Attr.test(AttrUnknownIndex) || Attr.test(AttrCallerIndex); in hasUnknownOrCallerAttr() 42 bool hasEscapedAttr(AliasAttrs Attr) { return Attr.test(AttrEscapedIndex); } in hasEscapedAttr() argument 65 bool isGlobalOrArgAttr(AliasAttrs Attr) { in isGlobalOrArgAttr() argument 66 return Attr.reset(AttrEscapedIndex) in isGlobalOrArgAttr() 72 AliasAttrs getExternallyVisibleAttrs(AliasAttrs Attr) { in getExternallyVisibleAttrs() argument 73 return Attr & AliasAttrs(ExternalAttrMask); in getExternallyVisibleAttrs() 101 return InstantiatedAttr{*Value, EAttr.Attr}; in instantiateExternalAttribute()
|
| /openbsd/src/gnu/llvm/clang/lib/ARCMigrate/ |
| D | TransGCAttrs.cpp | 67 } else if (AttributedTypeLoc Attr = TL.getAs<AttributedTypeLoc>()) { in lookForAttribute() local 68 if (handleAttr(Attr, D)) in lookForAttribute() 70 TL = Attr.getModifiedLoc(); in lookForAttribute() 110 MigrationContext::GCAttrOccurrence &Attr = MigrateCtx.GCAttrs.back(); in handleAttr() local 112 Attr.Kind = Kind; in handleAttr() 113 Attr.Loc = Loc; in handleAttr() 114 Attr.ModifiedType = TL.getModifiedLoc().getType(); in handleAttr() 115 Attr.Dcl = D; in handleAttr() 116 Attr.FullyMigratable = FullyMigratable; in handleAttr() 183 MigrationContext::GCAttrOccurrence &Attr = MigrateCtx.GCAttrs[i]; in errorForGCAttrsOnNonObjC() local [all …]
|
| /openbsd/src/gnu/llvm/clang/lib/Sema/ |
| D | OpenCLBuiltins.td | 304 def Attr { 314 class Builtin<string _Name, list<Type> _Signature, list<bit> _Attributes = Attr.None> { 521 Attr.Const>; 525 Attr.Const>; 535 def : Builtin<"get_work_dim", [UInt], Attr.Const>; 539 def : Builtin<name, [Size, UInt], Attr.Const>; 570 def : Builtin<name, [FGenTypeN, FGenTypeN], Attr.Const>; 573 def : Builtin<name, [GenTypeFloatVecAndScalar, GenTypeUIntVecAndScalar], Attr.Const>; 574 def : Builtin<name, [GenTypeDoubleVecAndScalar, GenTypeULongVecAndScalar], Attr.Const>; 575 def : Builtin<name, [GenTypeHalfVecAndScalar, GenTypeUShortVecAndScalar], Attr.Const>; [all …]
|
| D | SemaStmtAttr.cpp | 27 static Attr *handleFallThroughAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleFallThroughAttr() 29 FallThroughAttr Attr(S.Context, A); in handleFallThroughAttr() local 54 static Attr *handleSuppressAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleSuppressAttr() 72 static Attr *handleLoopHintAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleLoopHintAttr() 204 static Attr *handleNoMergeAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleNoMergeAttr() 218 static Attr *handleNoInlineAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleNoInlineAttr() 244 static Attr *handleAlwaysInlineAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleAlwaysInlineAttr() 270 static Attr *handleMustTailAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleMustTailAttr() 276 static Attr *handleLikely(Sema &S, Stmt *St, const ParsedAttr &A, in handleLikely() 285 static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, in handleUnlikely() [all …]
|
| /openbsd/src/gnu/llvm/clang/utils/TableGen/ |
| D | ClangAttrEmitter.cpp | 77 GetFlattenedSpellings(const Record &Attr) { in GetFlattenedSpellings() argument 78 std::vector<Record *> Spellings = Attr.getValueAsListOfDefs("Spellings"); in GetFlattenedSpellings() 173 for (const auto *Attr : Attrs) { in getParsedAttrList() local 174 if (Attr->getValueAsBit("SemaHandler")) { in getParsedAttrList() 176 if (Attr->isSubClassOf("TargetSpecificAttr") && in getParsedAttrList() 177 !Attr->isValueUnset("ParseKind")) { in getParsedAttrList() 178 AN = std::string(Attr->getValueAsString("ParseKind")); in getParsedAttrList() 184 Dupes->push_back(std::make_pair(AN, Attr)); in getParsedAttrList() 189 AN = NormalizeAttrName(Attr->getName()).str(); in getParsedAttrList() 191 R.push_back(std::make_pair(AN, Attr)); in getParsedAttrList() [all …]
|
| /openbsd/src/gnu/llvm/clang/include/clang/AST/ |
| D | Attr.h | 40 class Attr : public AttributeCommonInfo { 73 Attr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in Attr() function 100 Attr *clone(ASTContext &C) const; 110 class TypeAttr : public Attr { 114 : Attr(Context, CommonInfo, AK, IsLateParsed) {} in TypeAttr() 117 static bool classof(const Attr *A) { in classof() 123 class StmtAttr : public Attr { 127 : Attr(Context, CommonInfo, AK, IsLateParsed) {} in StmtAttr() 130 static bool classof(const Attr *A) { in classof() 136 class InheritableAttr : public Attr { [all …]
|
| D | AttrVisitor.h | 31 RetTy Visit(PTR(Attr) A) { in Visit() 36 DISPATCH(NAME##Attr); in Visit() 45 RetTy Visit##NAME##Attr(PTR(NAME##Attr) A) { DISPATCH(Attr); } 48 RetTy VisitAttr(PTR(Attr)) { return RetTy(); } in VisitAttr() argument
|
| D | ASTMutationListener.h | 16 class Attr; variable 128 const Attr *Attr) {} in DeclarationMarkedOpenMPDeclareTarget() argument 133 virtual void DeclarationMarkedOpenMPAllocate(const Decl *D, const Attr *A) {} in DeclarationMarkedOpenMPAllocate() 147 virtual void AddedAttributeToRecord(const Attr *Attr, in AddedAttributeToRecord() argument
|
| /openbsd/src/gnu/llvm/llvm/lib/Object/ |
| D | ELFObjectFile.cpp | 170 std::optional<unsigned> Attr = in getARMFeatures() local 172 if (Attr) in getARMFeatures() 173 isV7 = *Attr == ARMBuildAttrs::v7; in getARMFeatures() 175 Attr = Attributes.getAttributeValue(ARMBuildAttrs::CPU_arch_profile); in getARMFeatures() 176 if (Attr) { in getARMFeatures() 177 switch (*Attr) { in getARMFeatures() 194 Attr = Attributes.getAttributeValue(ARMBuildAttrs::THUMB_ISA_use); in getARMFeatures() 195 if (Attr) { in getARMFeatures() 196 switch (*Attr) { in getARMFeatures() 209 Attr = Attributes.getAttributeValue(ARMBuildAttrs::FP_arch); in getARMFeatures() [all …]
|
| D | RecordStreamer.cpp | 157 MCSymbolAttr Attr = MCSA_Invalid; in flushSymverDirectives() local 165 Attr = MCSA_Global; in flushSymverDirectives() 169 Attr = MCSA_Weak; in flushSymverDirectives() 188 if (Attr == MCSA_Invalid || !IsDefined) { in flushSymverDirectives() 198 if (Attr == MCSA_Invalid) { in flushSymverDirectives() 200 Attr = MCSA_Global; in flushSymverDirectives() 202 Attr = MCSA_Local; in flushSymverDirectives() 204 Attr = MCSA_Weak; in flushSymverDirectives() 229 if (Attr != MCSA_Invalid) in flushSymverDirectives() 230 emitSymbolAttribute(Alias, Attr); in flushSymverDirectives()
|
| /openbsd/src/gnu/llvm/llvm/lib/DebugInfo/DWARF/ |
| D | DWARFDie.cpp | 117 dwarf::Attribute Attr = AttrValue.Attr; in dumpAttribute() local 118 WithColor(OS, HighlightColor::Attribute) << formatv("{0}", Attr); in dumpAttribute() 132 if (Attr == DW_AT_decl_file || Attr == DW_AT_call_file) { in dumpAttribute() 146 Name = AttributeValueString(Attr, *Val); in dumpAttribute() 150 else if (Attr == DW_AT_decl_line || Attr == DW_AT_call_line) { in dumpAttribute() 155 } else if (Attr == DW_AT_low_pc && in dumpAttribute() 165 } else if (Attr == DW_AT_high_pc && !DumpOpts.ShowForm && !DumpOpts.Verbose && in dumpAttribute() 175 } else if (DWARFAttribute::mayHaveLocationList(Attr) && in dumpAttribute() 180 (DWARFAttribute::mayHaveLocationExpr(Attr) && in dumpAttribute() 192 if (Attr == DW_AT_specification || Attr == DW_AT_abstract_origin) { in dumpAttribute() [all …]
|
| D | DWARFAbbreviationDeclaration.cpp | 131 OS << formatv("\t{0}\t{1}", Spec.Attr, Spec.Form); in dump() 140 DWARFAbbreviationDeclaration::findAttributeIndex(dwarf::Attribute Attr) const { in findAttributeIndex() 142 if (AttributeSpecs[i].Attr == Attr) in findAttributeIndex() 186 const dwarf::Attribute Attr, in getAttributeValue() argument 190 std::optional<uint32_t> MatchAttrIndex = findAttributeIndex(Attr); in getAttributeValue()
|
| /openbsd/src/gnu/llvm/llvm/tools/llvm-exegesis/lib/X86/ |
| D | X86Counter.cpp | 124 Attr = new perf_event_attr(); in X86LbrPerfEvent() 125 Attr->size = sizeof(*Attr); in X86LbrPerfEvent() 126 Attr->type = PERF_TYPE_RAW; in X86LbrPerfEvent() 128 Attr->config = 0x20c4; // BR_INST_RETIRED.NEAR_TAKEN in X86LbrPerfEvent() 129 Attr->sample_type = PERF_SAMPLE_BRANCH_STACK; in X86LbrPerfEvent() 131 Attr->branch_sample_type = PERF_SAMPLE_BRANCH_ANY; in X86LbrPerfEvent() 132 Attr->sample_period = SamplingPeriod; in X86LbrPerfEvent() 133 Attr->wakeup_events = 1; // We need this even when using ioctl REFRESH. in X86LbrPerfEvent() 134 Attr->disabled = 1; in X86LbrPerfEvent() 135 Attr->exclude_kernel = 1; in X86LbrPerfEvent() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/DWARFLinker/ |
| D | DWARFLinkerCompileUnit.cpp | 101 DeclContext *Ctxt, PatchLocation Attr) { in noteForwardReference() argument 102 ForwardDIEReferences.emplace_back(Die, RefUnit, Ctxt, Attr); in noteForwardReference() 109 PatchLocation Attr; in fixupForwardReferences() local 111 std::tie(RefDie, RefUnit, Ctxt, Attr) = Ref; in fixupForwardReferences() 115 Attr.set(Ctxt->getCanonicalDIEOffset()); in fixupForwardReferences() 118 Attr.set(RefDie->getOffset() + RefUnit->getStartOffset()); in fixupForwardReferences() 137 void CompileUnit::noteRangeAttribute(const DIE &Die, PatchLocation Attr) { in noteRangeAttribute() argument 139 RangeAttributes.push_back(Attr); in noteRangeAttribute() 141 UnitRangeAttribute = Attr; in noteRangeAttribute() 144 void CompileUnit::noteLocationAttribute(PatchLocation Attr, int64_t PcOffset) { in noteLocationAttribute() argument [all …]
|
| /openbsd/src/gnu/llvm/llvm/tools/llvm-exegesis/lib/ |
| D | PerfHelper.cpp | 49 delete Attr; in ~PerfEvent() 57 Attr(Other.Attr) { in PerfEvent() 58 Other.Attr = nullptr; in PerfEvent() 62 : EventString(PfmEventString.str()), Attr(nullptr) { in PerfEvent() 66 Attr = new perf_event_attr(); in PerfEvent() 67 Arg.attr = Attr; in PerfEvent() 90 const perf_event_attr *PerfEvent::attribute() const { return Attr; } in attribute()
|
| /openbsd/src/gnu/llvm/llvm/utils/gn/secondary/clang/include/clang/Sema/ |
| D | BUILD.gn | 5 td_file = "../Basic/Attr.td" 10 td_file = "../Basic/Attr.td" 15 td_file = "../Basic/Attr.td" 20 td_file = "../Basic/Attr.td" 25 td_file = "../Basic/Attr.td"
|
| /openbsd/src/gnu/llvm/clang/include/clang/Sema/ |
| D | CMakeLists.txt | 3 SOURCE ../Basic/Attr.td 8 SOURCE ../Basic/Attr.td 13 SOURCE ../Basic/Attr.td 18 SOURCE ../Basic/Attr.td 23 SOURCE ../Basic/Attr.td
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| D | ThreadSanitizer.cpp | 204 AttributeList Attr; in initialize() local 205 Attr = Attr.addFnAttribute(Ctx, Attribute::NoUnwind); in initialize() 207 TsanFuncEntry = M.getOrInsertFunction("__tsan_func_entry", Attr, in initialize() 210 M.getOrInsertFunction("__tsan_func_exit", Attr, IRB.getVoidTy()); in initialize() 211 TsanIgnoreBegin = M.getOrInsertFunction("__tsan_ignore_thread_begin", Attr, in initialize() 214 M.getOrInsertFunction("__tsan_ignore_thread_end", Attr, IRB.getVoidTy()); in initialize() 222 TsanRead[i] = M.getOrInsertFunction(ReadName, Attr, IRB.getVoidTy(), in initialize() 226 TsanWrite[i] = M.getOrInsertFunction(WriteName, Attr, IRB.getVoidTy(), in initialize() 231 UnalignedReadName, Attr, IRB.getVoidTy(), IRB.getInt8PtrTy()); in initialize() 235 UnalignedWriteName, Attr, IRB.getVoidTy(), IRB.getInt8PtrTy()); in initialize() [all …]
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/DebugInfo/DWARF/ |
| D | DWARFAttribute.h | 30 dwarf::Attribute Attr = dwarf::Attribute(0); member 35 return Offset != 0 && Attr != dwarf::Attribute(0); in isValid() 43 static bool mayHaveLocationList(dwarf::Attribute Attr); 47 static bool mayHaveLocationExpr(dwarf::Attribute Attr);
|
| /openbsd/src/gnu/usr.bin/clang/include/clang/Sema/ |
| D | Makefile | 24 AttrTemplateInstantiate.inc: ${CLANG_INC}/clang/Basic/Attr.td 28 AttrParsedAttrList.inc: ${CLANG_INC}/clang/Basic/Attr.td 32 AttrParsedAttrKinds.inc: ${CLANG_INC}/clang/Basic/Attr.td 36 AttrSpellingListIndex.inc: ${CLANG_INC}/clang/Basic/Attr.td 40 AttrParsedAttrImpl.inc: ${CLANG_INC}/clang/Basic/Attr.td
|
| /openbsd/src/gnu/llvm/llvm/utils/gn/secondary/clang/include/clang/AST/ |
| D | BUILD.gn | 5 td_file = "../Basic/Attr.td" 10 td_file = "../Basic/Attr.td" 15 td_file = "../Basic/Attr.td" 20 td_file = "../Basic/Attr.td" 25 td_file = "../Basic/Attr.td"
|
| /openbsd/src/gnu/llvm/clang/lib/Frontend/ |
| D | MultiplexConsumer.cpp | 112 void DeclarationMarkedOpenMPAllocate(const Decl *D, const Attr *A) override; 114 const Attr *Attr) override; 116 void AddedAttributeToRecord(const Attr *Attr, 219 const Decl *D, const Attr *A) { in DeclarationMarkedOpenMPAllocate() 224 const Decl *D, const Attr *Attr) { in DeclarationMarkedOpenMPDeclareTarget() argument 226 L->DeclarationMarkedOpenMPDeclareTarget(D, Attr); in DeclarationMarkedOpenMPDeclareTarget() 235 const Attr *Attr, in AddedAttributeToRecord() argument 238 L->AddedAttributeToRecord(Attr, Record); in AddedAttributeToRecord()
|
| /openbsd/src/gnu/llvm/llvm/lib/IR/ |
| D | Statepoint.cpp | 18 bool llvm::isStatepointDirectiveAttr(Attribute Attr) { in isStatepointDirectiveAttr() argument 19 return Attr.hasAttribute("statepoint-id") || in isStatepointDirectiveAttr() 20 Attr.hasAttribute("statepoint-num-patch-bytes"); in isStatepointDirectiveAttr()
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/AArch64/ |
| D | SVEIntrinsicOpts.cpp | 283 auto Attr = F->getFnAttribute(Attribute::VScaleRange); in optimizePredicateStore() local 284 if (!Attr.isValid()) in optimizePredicateStore() 287 unsigned MinVScale = Attr.getVScaleRangeMin(); in optimizePredicateStore() 288 std::optional<unsigned> MaxVScale = Attr.getVScaleRangeMax(); in optimizePredicateStore() 346 auto Attr = F->getFnAttribute(Attribute::VScaleRange); in optimizePredicateLoad() local 347 if (!Attr.isValid()) in optimizePredicateLoad() 350 unsigned MinVScale = Attr.getVScaleRangeMin(); in optimizePredicateLoad() 351 std::optional<unsigned> MaxVScale = Attr.getVScaleRangeMax(); in optimizePredicateLoad()
|