Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DGlobalVariable.h197 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function
198 return Attrs.hasAttribute(Kind); in hasAttribute()
202 bool hasAttribute(StringRef Kind) const { in hasAttribute() function
203 return Attrs.hasAttribute(Kind); in hasAttribute()
243 return getAttributes().hasAttribute("bss-section") || in hasImplicitSection()
244 getAttributes().hasAttribute("data-section") || in hasImplicitSection()
245 getAttributes().hasAttribute("relro-section") || in hasImplicitSection()
246 getAttributes().hasAttribute("rodata-section"); in hasImplicitSection()
H A DArgument.h167 bool hasAttribute(Attribute::AttrKind Kind) const;
H A DAttributes.h185 bool hasAttribute(AttrKind Val) const;
188 bool hasAttribute(StringRef Val) const;
353 bool hasAttribute(Attribute::AttrKind Kind) const;
356 bool hasAttribute(StringRef Kind) const;
/llvm-project-15.0.7/llvm/lib/IR/
H A DAttributes.cpp325 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
373 assert(hasAttribute(Attribute::UWTable) && in getUWTableKind()
405 if (hasAttribute(Attribute::Alignment)) in getAsString()
425 if (hasAttribute(Attribute::AllocSize)) { in getAsString()
444 if (hasAttribute(Attribute::UWTable)) { in getAsString()
455 if (hasAttribute(Attribute::AllocKind)) { in getAsString()
633 if (hasAttribute(Kind)) return *this; in addAttribute()
661 if (!hasAttribute(Kind)) return *this; in removeAttribute()
669 if (!hasAttribute(Kind)) return *this; in removeAttribute()
860 if (!hasAttribute(Kind)) in findEnumAttribute()
[all …]
H A DAttributeImpl.h62 bool hasAttribute(Attribute::AttrKind A) const;
63 bool hasAttribute(StringRef Kind) const;
199 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function
242 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function
243 return AvailableAttrs.hasAttribute(Kind); in hasAttribute()
245 bool hasAttribute(StringRef Kind) const;
308 return AvailableFunctionAttrs.hasAttribute(Kind); in hasFnAttribute()
H A DStatepoint.cpp19 return Attr.hasAttribute("statepoint-id") || in isStatepointDirectiveAttr()
20 Attr.hasAttribute("statepoint-num-patch-bytes"); in isStatepointDirectiveAttr()
H A DVerifier.cpp1766 if (Attrs.hasAttribute(Attribute::ImmArg)) { in verifyParameterAttrs()
1779 AttrCount += Attrs.hasAttribute(Attribute::Nest); in verifyParameterAttrs()
1787 Attrs.hasAttribute(Attribute::ReadOnly)), in verifyParameterAttrs()
1793 Attrs.hasAttribute(Attribute::Returned)), in verifyParameterAttrs()
1798 Check(!(Attrs.hasAttribute(Attribute::ZExt) && in verifyParameterAttrs()
1799 Attrs.hasAttribute(Attribute::SExt)), in verifyParameterAttrs()
1839 if (Attrs.hasAttribute(Attribute::ByVal)) { in verifyParameterAttrs()
1850 if (Attrs.hasAttribute(Attribute::ByRef)) { in verifyParameterAttrs()
1855 if (Attrs.hasAttribute(Attribute::InAlloca)) { in verifyParameterAttrs()
1871 if (Attrs.hasAttribute(Attribute::ByRef)) { in verifyParameterAttrs()
[all …]
H A DFunction.cpp111 return hasAttribute(Attribute::ByVal); in hasByValAttr()
117 return hasAttribute(Attribute::ByRef); in hasByRefAttr()
130 return hasAttribute(Attribute::InAlloca); in hasInAllocaAttr()
239 return hasAttribute(Attribute::Nest); in hasNestAttr()
244 return hasAttribute(Attribute::NoAlias); in hasNoAliasAttr()
249 return hasAttribute(Attribute::NoCapture); in hasNoCaptureAttr()
254 return hasAttribute(Attribute::NoFree); in hasNoFreeAttr()
263 return hasAttribute(Attribute::InReg); in hasInRegAttr()
267 return hasAttribute(Attribute::Returned); in hasReturnedAttr()
271 return hasAttribute(Attribute::ZExt); in hasZExtAttr()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86CallLowering.cpp256 if (Arg.hasAttribute(Attribute::ByVal) || in lowerFormalArguments()
257 Arg.hasAttribute(Attribute::InReg) || in lowerFormalArguments()
258 Arg.hasAttribute(Attribute::StructRet) || in lowerFormalArguments()
259 Arg.hasAttribute(Attribute::SwiftSelf) || in lowerFormalArguments()
260 Arg.hasAttribute(Attribute::SwiftError) || in lowerFormalArguments()
261 Arg.hasAttribute(Attribute::Nest) || VRegs[Idx].size() > 1) in lowerFormalArguments()
/llvm-project-15.0.7/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp329 if ((Attrs.hasAttribute("bss-section") && Kind.isBSS()) || in SectionForGlobal()
330 (Attrs.hasAttribute("data-section") && Kind.isData()) || in SectionForGlobal()
331 (Attrs.hasAttribute("relro-section") && Kind.isReadOnlyWithRel()) || in SectionForGlobal()
332 (Attrs.hasAttribute("rodata-section") && Kind.isReadOnly())) { in SectionForGlobal()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFCheckAndAdjustIR.cpp87 if (GV->hasAttribute(BPFCoreSharedInfo::AmaAttr) || in checkIR()
88 GV->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in checkIR()
H A DBPFAdjustOpt.cpp288 if (GV->hasAttribute(BPFCoreSharedInfo::AmaAttr) || in avoidSpeculation()
289 GV->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in avoidSpeculation()
H A DBPFMISimplifyPatchable.cpp305 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) in removeLD()
307 else if (!GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in removeLD()
H A DBTFDebug.cpp1272 if (!GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) && in processGlobalValue()
1273 !GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in processGlobalValue()
1282 GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)); in processGlobalValue()
1477 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) || in InstLower()
1478 GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) { in InstLower()
1504 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in InstLower()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp155 if (Arg.hasAttribute(Attribute::Alignment)) { in lowerFormalArguments()
161 if (Arg.hasAttribute(Attribute::ReadOnly)) { in lowerFormalArguments()
167 if (Arg.hasAttribute(Attribute::ZExt)) { in lowerFormalArguments()
173 if (Arg.hasAttribute(Attribute::NoAlias)) { in lowerFormalArguments()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DAttributes.h22 int hasAttribute(AttributeCommonInfo::Syntax Syntax,
/llvm-project-15.0.7/llvm/unittests/IR/
H A DAttributesTest.cpp94 EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly)); in TEST()
96 EXPECT_FALSE(AS.hasAttribute(Attribute::Alignment)); in TEST()
97 EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly)); in TEST()
101 EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly)); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMachineFunctionInfo.cpp99 HasSwiftErrorArg |= Arg.hasAttribute(Attribute::SwiftError); in computeSignatureVTs()
100 HasSwiftSelfArg |= Arg.hasAttribute(Attribute::SwiftSelf); in computeSignatureVTs()
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCSectionMachO.h54 bool hasAttribute(unsigned Value) const { in hasAttribute() function
/llvm-project-15.0.7/llvm/tools/llvm-profgen/
H A DCSPreInliner.cpp152 return Candidate.CalleeSamples->getContext().hasAttribute( in shouldInline()
248 Candidate.CalleeSamples->getContext().hasAttribute(ContextWasInlined); in processFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DAssumeBundleBuilder.cpp156 if (Arg->hasAttribute(RK.AttrKind) && in isKnowledgeWorthPreserving()
211 bool IsPoisonAttr = Attr.hasAttribute(Attribute::NonNull) || in addCall()
212 Attr.hasAttribute(Attribute::Alignment); in addCall()
423 bool HasSameKindAttr = Arg->hasAttribute(RK.AttrKind); in dropRedundantKnowledge()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp127 if (Section.hasAttribute(MachO::S_ATTR_DEBUG)) in canUseLocalRelocation()
332 if (Section.hasAttribute(MachO::S_ATTR_DEBUG)) in recordRelocation()
/llvm-project-15.0.7/llvm/tools/bugpoint-passes/
H A DTestPasses.cpp147 if (A.hasAttribute("bugpoint-crash")) in runOnFunction()
/llvm-project-15.0.7/polly/www/video-js/
H A Dvideo.js133 if (typeof this.video.hasAttribute == "function" && this.video.hasAttribute("preload")) {
142 if (typeof this.video.hasAttribute == "function" && this.video.hasAttribute("autoplay")) {
485 …if (typeof this.video.hasAttribute == "function" && this.video.hasAttribute("preload") && this.vid…
/llvm-project-15.0.7/clang/lib/Basic/
H A DAttributes.cpp8 int clang::hasAttribute(AttributeCommonInfo::Syntax Syntax, in hasAttribute() function in clang

123