Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DOpenCLBuiltins.td308 def Attr {
318 class Builtin<string _Name, list<Type> _Signature, list<bit> _Attributes = Attr.None> {
525 Attr.Const>;
529 Attr.Const>;
539 def : Builtin<"get_work_dim", [UInt], Attr.Const>;
543 def : Builtin<name, [Size, UInt], Attr.Const>;
574 def : Builtin<name, [FGenTypeN, FGenTypeN], Attr.Const>;
577 def : Builtin<name, [GenTypeFloatVecAndScalar, GenTypeUIntVecAndScalar], Attr.Const>;
578 def : Builtin<name, [GenTypeDoubleVecAndScalar, GenTypeULongVecAndScalar], Attr.Const>;
579 def : Builtin<name, [GenTypeHalfVecAndScalar, GenTypeUShortVecAndScalar], Attr.Const>;
[all …]
H A DSemaAMDGPU.cpp172 const AMDGPUFlatWorkGroupSizeAttr &Attr) { in checkAMDGPUFlatWorkGroupSizeArguments() argument
179 if (!S.checkUInt32Argument(Attr, MinExpr, Min, 0)) in checkAMDGPUFlatWorkGroupSizeArguments()
183 if (!S.checkUInt32Argument(Attr, MaxExpr, Max, 1)) in checkAMDGPUFlatWorkGroupSizeArguments()
187 S.Diag(Attr.getLocation(), diag::err_attribute_argument_invalid) in checkAMDGPUFlatWorkGroupSizeArguments()
188 << &Attr << 0; in checkAMDGPUFlatWorkGroupSizeArguments()
192 S.Diag(Attr.getLocation(), diag::err_attribute_argument_invalid) in checkAMDGPUFlatWorkGroupSizeArguments()
193 << &Attr << 1; in checkAMDGPUFlatWorkGroupSizeArguments()
215 if (auto *Attr = CreateAMDGPUFlatWorkGroupSizeAttr(CI, MinExpr, MaxExpr)) in addAMDGPUFlatWorkGroupSizeAttr() local
216 D->addAttr(Attr); in addAMDGPUFlatWorkGroupSizeAttr()
229 const AMDGPUWavesPerEUAttr &Attr) { in checkAMDGPUWavesPerEUArguments() argument
[all …]
H A DSemaType.cpp212 using TypeAttrPair = std::pair<const AttributedType*, const Attr*>;
281 for (auto *Attr : ignoredTypeAttrs) in diagnoseIgnoredTypeAttrs() local
282 diagnoseBadTypeAttribute(getSema(), *Attr, type); in diagnoseIgnoredTypeAttrs()
287 QualType getAttributedType(Attr *A, QualType ModifiedType, in getAttributedType()
320 const Attr *takeAttrForAttributedType(const AttributedType *AT) { in takeAttrForAttributedType()
333 const Attr *Result = It->second; in takeAttrForAttributedType()
4212 static Attr *createNullabilityAttr(ASTContext &Ctx, ParsedAttr &Attr, in createNullabilityAttr() argument
4216 return createSimpleAttr<TypeNonNullAttr>(Ctx, Attr); in createNullabilityAttr()
4219 return createSimpleAttr<TypeNullableAttr>(Ctx, Attr); in createNullabilityAttr()
4222 return createSimpleAttr<TypeNullableResultAttr>(Ctx, Attr); in createNullabilityAttr()
[all …]
H A DSemaStmtAttr.cpp24 static Attr *handleFallThroughAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleFallThroughAttr()
26 FallThroughAttr Attr(S.Context, A); in handleFallThroughAttr() local
51 static Attr *handleSuppressAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleSuppressAttr()
74 static Attr *handleLoopHintAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleLoopHintAttr()
218 static Attr *handleNoMergeAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleNoMergeAttr()
231 static Attr *handleNoConvergentAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleNoConvergentAttr()
297 static Attr *handleNoInlineAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleNoInlineAttr()
312 static Attr *handleAlwaysInlineAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleAlwaysInlineAttr()
327 static Attr *handleCXXAssumeAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleCXXAssumeAttr()
336 static Attr *handleMustTailAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleMustTailAttr()
[all …]
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DClangAttrEmitter.cpp96 GetFlattenedSpellings(const Record &Attr) { in GetFlattenedSpellings() argument
99 for (const auto &Spelling : Attr.getValueAsListOfDefs("Spellings")) { in GetFlattenedSpellings()
196 for (const Record *Attr : Records.getAllDerivedDefinitions("Attr")) { in getParsedAttrList() local
197 if (!SemaOnly || Attr->getValueAsBit("SemaHandler")) { in getParsedAttrList()
199 if (Attr->isSubClassOf("TargetSpecificAttr") && in getParsedAttrList()
200 !Attr->isValueUnset("ParseKind")) { in getParsedAttrList()
201 AN = Attr->getValueAsString("ParseKind").str(); in getParsedAttrList()
207 Dupes->push_back(std::make_pair(AN, Attr)); in getParsedAttrList()
211 AN = NormalizeAttrName(Attr->getName()).str(); in getParsedAttrList()
213 R.push_back(std::make_pair(AN, Attr)); in getParsedAttrList()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DELFObjectFile.cpp170 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 …]
H A DRecordStreamer.cpp152 MCSymbolAttr Attr = MCSA_Invalid; in flushSymverDirectives()
160 Attr = MCSA_Global; in flushSymverDirectives()
164 Attr = MCSA_Weak; in flushSymverDirectives()
183 if (Attr == MCSA_Invalid || !IsDefined) { in flushSymverDirectives()
193 if (Attr == MCSA_Invalid) { in flushSymverDirectives()
195 Attr = MCSA_Global; in flushSymverDirectives()
197 Attr = MCSA_Local; in flushSymverDirectives()
199 Attr = MCSA_Weak; in flushSymverDirectives()
224 if (Attr != MCSA_Invalid) in flushSymverDirectives()
225 emitSymbolAttribute(Alias, Attr); in flushSymverDirectives()
157 MCSymbolAttr Attr = MCSA_Invalid; flushSymverDirectives() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDie.cpp118 dwarf::Attribute Attr = AttrValue.Attr; in dumpAttribute() local
119 WithColor(OS, HighlightColor::Attribute) << formatv("{0}", Attr); in dumpAttribute()
133 if (Attr == DW_AT_decl_file || Attr == DW_AT_call_file) { in dumpAttribute()
147 Name = AttributeValueString(Attr, *Val); in dumpAttribute()
151 else if (Attr == DW_AT_decl_line || Attr == DW_AT_decl_column || in dumpAttribute()
152 Attr == DW_AT_call_line || Attr == DW_AT_call_column) { in dumpAttribute()
157 } else if (Attr == DW_AT_low_pc && in dumpAttribute()
167 } else if (Attr == DW_AT_high_pc && !DumpOpts.ShowForm && !DumpOpts.Verbose && in dumpAttribute()
177 } else if (DWARFAttribute::mayHaveLocationList(Attr) && in dumpAttribute()
182 (DWARFAttribute::mayHaveLocationExpr(Attr) && in dumpAttribute()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DAttr.h44 class Attr : public AttributeCommonInfo {
83 Attr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in Attr() function
110 Attr *clone(ASTContext &C) const;
120 class TypeAttr : public Attr {
124 : Attr(Context, CommonInfo, AK, IsLateParsed) {} in TypeAttr()
127 static bool classof(const Attr *A) { in classof()
133 class StmtAttr : public Attr {
137 : Attr(Context, CommonInfo, AK, IsLateParsed) {} in StmtAttr()
140 static bool classof(const Attr *A) { in classof()
146 class InheritableAttr : public Attr {
[all …]
H A DAttrVisitor.h31 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
H A DASTMutationListener.h16 class Attr; variable
130 const Attr *Attr) {} in DeclarationMarkedOpenMPDeclareTarget() argument
135 virtual void DeclarationMarkedOpenMPAllocate(const Decl *D, const Attr *A) {} in DeclarationMarkedOpenMPAllocate()
149 virtual void AddedAttributeToRecord(const Attr *Attr, in AddedAttributeToRecord() argument
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DGOFFObjectWriter.cpp223 GOFFSymbol(StringRef Name, uint32_t EsdID, const GOFF::SDAttr &Attr) in GOFFSymbol() argument
226 BehavAttrs.setTaskingBehavior(Attr.TaskingBehavior); in GOFFSymbol()
227 BehavAttrs.setBindingScope(Attr.BindingScope); in GOFFSymbol()
231 const GOFF::EDAttr &Attr) in GOFFSymbol() argument
234 this->NameSpace = Attr.NameSpace; in GOFFSymbol()
236 this->FillByteValue = Attr.FillByteValue; in GOFFSymbol()
238 SymbolFlags.setReservedQwords(Attr.ReservedQwords); in GOFFSymbol()
240 BehavAttrs.setReadOnly(Attr.IsReadOnly); in GOFFSymbol()
241 BehavAttrs.setRmode(Attr.Rmode); in GOFFSymbol()
242 BehavAttrs.setTextStyle(Attr.TextStyle); in GOFFSymbol()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFLinkerCompileUnit.cpp139 DeclContext *Ctxt, PatchLocation Attr) { in noteForwardReference() argument
140 ForwardDIEReferences.emplace_back(Die, RefUnit, Ctxt, Attr); in noteForwardReference()
147 PatchLocation Attr; in fixupForwardReferences() local
149 std::tie(RefDie, RefUnit, Ctxt, Attr) = Ref; in fixupForwardReferences()
153 Attr.set(Ctxt->getCanonicalDIEOffset()); in fixupForwardReferences()
156 Attr.set(RefDie->getOffset() + RefUnit->getStartOffset()); in fixupForwardReferences()
175 void CompileUnit::noteRangeAttribute(const DIE &Die, PatchLocation Attr) { in noteRangeAttribute() argument
177 UnitRangeAttribute = Attr; in noteRangeAttribute()
181 RangeAttributes.emplace_back(Attr); in noteRangeAttribute()
184 void CompileUnit::noteLocationAttribute(PatchLocation Attr) { in noteLocationAttribute() argument
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-tapi-diff/
H A DDiffEngine.cpp
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFLinkerCompileUnit.cpp
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp205 AttributeList Attr; in initialize() local
206 Attr = Attr.addFnAttribute(Ctx, Attribute::NoUnwind); in initialize()
208 TsanFuncEntry = M.getOrInsertFunction("__tsan_func_entry", Attr, in initialize()
211 M.getOrInsertFunction("__tsan_func_exit", Attr, IRB.getVoidTy()); in initialize()
212 TsanIgnoreBegin = M.getOrInsertFunction("__tsan_ignore_thread_begin", Attr, in initialize()
215 M.getOrInsertFunction("__tsan_ignore_thread_end", Attr, IRB.getVoidTy()); in initialize()
223 TsanRead[i] = M.getOrInsertFunction(ReadName, Attr, IRB.getVoidTy(), in initialize()
227 TsanWrite[i] = M.getOrInsertFunction(WriteName, Attr, IRB.getVoidTy(), in initialize()
232 UnalignedReadName, Attr, IRB.getVoidTy(), IRB.getPtrTy()); in initialize()
236 UnalignedWriteName, Attr, IRB.getVoidTy(), IRB.getPtrTy()); in initialize()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DParsedAttrInfo.h28 class Attr; variable
109 virtual bool diagAppertainsToDecl(Sema &S, const ParsedAttr &Attr, in diagAppertainsToDecl()
114 virtual bool diagAppertainsToStmt(Sema &S, const ParsedAttr &Attr, in diagAppertainsToStmt()
139 spellingIndexToSemanticSpelling(const ParsedAttr &Attr) const { in spellingIndexToSemanticSpelling()
156 const ParsedAttr &Attr) const { in handleDeclAttribute()
164 const ParsedAttr &Attr, in handleStmtAttribute()
165 class Attr *&Result) const { in handleStmtAttribute()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFAttribute.h31 dwarf::Attribute Attr = dwarf::Attribute(0); member
36 return Offset != 0 && Attr != dwarf::Attribute(0); in isValid()
44 LLVM_ABI static bool mayHaveLocationList(dwarf::Attribute Attr);
48 LLVM_ABI static bool mayHaveLocationExpr(dwarf::Attribute Attr);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DTCE.cpp45 const ReqdWorkGroupSizeAttr *Attr = FD->getAttr<ReqdWorkGroupSizeAttr>(); in setTargetAttributes() local
46 if (Attr) { in setTargetAttributes()
59 M.Int32Ty, Eval(Attr->getXDim()))), in setTargetAttributes()
61 M.Int32Ty, Eval(Attr->getYDim()))), in setTargetAttributes()
63 M.Int32Ty, Eval(Attr->getZDim()))), in setTargetAttributes()
H A DWebAssembly.cpp61 if (const auto *Attr = FD->getAttr<WebAssemblyImportModuleAttr>()) { in setTargetAttributes() local
64 B.addAttribute("wasm-import-module", Attr->getImportModule()); in setTargetAttributes()
67 if (const auto *Attr = FD->getAttr<WebAssemblyImportNameAttr>()) { in setTargetAttributes() local
70 B.addAttribute("wasm-import-name", Attr->getImportName()); in setTargetAttributes()
73 if (const auto *Attr = FD->getAttr<WebAssemblyExportNameAttr>()) { in setTargetAttributes() local
76 B.addAttribute("wasm-export-name", Attr->getExportName()); in setTargetAttributes()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaHLSL.h59 Sema &S, QualType Wrapped, ArrayRef<const Attr *> AttrList,
69 const HLSLResourceBindingAttr *Attr; member
74 const HLSLResourceBindingAttr *Attr = nullptr)
75 : Decl(Decl), ResClass(ResClass), Attr(Attr), BindType(BindType) {} in Decl()
78 assert(Attr == nullptr && BindType == BindingType::NotAssigned && in setBindingAttribute()
80 Attr = A; in setBindingAttribute()
135 const Attr *A, llvm::Triple::EnvironmentType Stage,
206 llvm::SmallVector<const Attr *> HLSLResourcesTypeAttrs;
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DABIInfo.cpp187 void ABIInfo::appendAttributeMangling(TargetAttr *Attr, in appendAttributeMangling() argument
189 if (Attr->isDefaultVersion()) in appendAttributeMangling()
191 appendAttributeMangling(Attr->getFeaturesStr(), Out); in appendAttributeMangling()
194 void ABIInfo::appendAttributeMangling(TargetVersionAttr *Attr, in appendAttributeMangling() argument
196 appendAttributeMangling(Attr->getNamesStr(), Out); in appendAttributeMangling()
199 void ABIInfo::appendAttributeMangling(TargetClonesAttr *Attr, unsigned Index, in appendAttributeMangling() argument
201 appendAttributeMangling(Attr->getFeatureStr(Index), Out); in appendAttributeMangling()
202 Out << '.' << Attr->getMangledIndex(Index); in appendAttributeMangling()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterpShared.cpp25 for (const auto *Attr : F->specific_attrs<NonNullAttr>()) { in collectNonNullArgs() local
26 if (!Attr->args_size()) { in collectNonNullArgs()
30 for (auto Idx : Attr->args()) { in collectNonNullArgs()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DSVEIntrinsicOpts.cpp281 auto Attr = F->getFnAttribute(Attribute::VScaleRange); in optimizePredicateStore() local
282 if (!Attr.isValid()) in optimizePredicateStore()
285 unsigned MinVScale = Attr.getVScaleRangeMin(); in optimizePredicateStore()
286 std::optional<unsigned> MaxVScale = Attr.getVScaleRangeMax(); in optimizePredicateStore()
341 auto Attr = F->getFnAttribute(Attribute::VScaleRange); in optimizePredicateLoad() local
342 if (!Attr.isValid()) in optimizePredicateLoad()
345 unsigned MinVScale = Attr.getVScaleRangeMin(); in optimizePredicateLoad()
346 std::optional<unsigned> MaxVScale = Attr.getVScaleRangeMax(); in optimizePredicateLoad()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DStatepoint.cpp18 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()

12345678910>>...12