Home
last modified time | relevance | path

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

123

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DGlobalVariable.h198 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function
199 return Attrs.hasAttribute(Kind); in hasAttribute()
203 bool hasAttribute(StringRef Kind) const { in hasAttribute() function
204 return Attrs.hasAttribute(Kind); in hasAttribute()
244 return getAttributes().hasAttribute("bss-section") || in hasImplicitSection()
245 getAttributes().hasAttribute("data-section") || in hasImplicitSection()
246 getAttributes().hasAttribute("relro-section") || in hasImplicitSection()
247 getAttributes().hasAttribute("rodata-section"); in hasImplicitSection()
H A DAttributes.h170 bool hasAttribute(AttrKind Val) const;
173 bool hasAttribute(StringRef Val) const;
329 bool hasAttribute(Attribute::AttrKind Kind) const;
332 bool hasAttribute(StringRef Kind) const;
632 bool hasAttribute(unsigned Index, Attribute::AttrKind Kind) const;
635 bool hasAttribute(unsigned Index, StringRef Kind) const;
642 return hasAttribute(ArgNo + FirstArgIndex, Kind);
647 return hasAttribute(ArgNo + FirstArgIndex, Kind);
H A DArgument.h168 bool hasAttribute(Attribute::AttrKind Kind) const;
H A DFunction.h445 bool hasAttribute(unsigned i, Attribute::AttrKind Kind) const { in hasAttribute() function
446 return getAttributes().hasAttribute(i, Kind); in hasAttribute()
703 return AttributeSets.hasAttribute(AttributeList::ReturnIndex, in returnDoesNotAlias()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DAttributes.cpp322 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
326 assert(hasAttribute(Attribute::Alignment) && in getAlignment()
352 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
384 if (hasAttribute(Attribute::Alignment)) { in getAsString()
415 if (hasAttribute(Attribute::AllocSize)) { in getAsString()
430 if (hasAttribute(Attribute::VScaleRange)) { in getAsString()
600 if (hasAttribute(Kind)) return *this; in addAttribute()
630 if (!hasAttribute(Kind)) return *this; in removeAttribute()
638 if (!hasAttribute(Kind)) return *this; in removeAttribute()
868 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;
305 return AvailableFunctionAttrs.hasAttribute(Kind); in hasFnAttribute()
H A DStatepoint.cpp21 return Attr.hasAttribute("statepoint-id") || in isStatepointDirectiveAttr()
22 Attr.hasAttribute("statepoint-num-patch-bytes"); in isStatepointDirectiveAttr()
H A DVerifier.cpp1698 if (Attrs.hasAttribute(Attribute::ImmArg)) { in verifyParameterAttrs()
1706 AttrCount += Attrs.hasAttribute(Attribute::ByVal); in verifyParameterAttrs()
1711 AttrCount += Attrs.hasAttribute(Attribute::Nest); in verifyParameterAttrs()
1730 Assert(!(Attrs.hasAttribute(Attribute::ZExt) && in verifyParameterAttrs()
1731 Attrs.hasAttribute(Attribute::SExt)), in verifyParameterAttrs()
1771 if (Attrs.hasAttribute(Attribute::ByVal)) { in verifyParameterAttrs()
1776 if (Attrs.hasAttribute(Attribute::ByRef)) { in verifyParameterAttrs()
1781 if (Attrs.hasAttribute(Attribute::InAlloca)) { in verifyParameterAttrs()
1797 if (Attrs.hasAttribute(Attribute::ByRef)) { in verifyParameterAttrs()
1888 if (ArgAttrs.hasAttribute(Attribute::Nest)) { in verifyFunctionAttrs()
[all …]
H A DFunction.cpp112 return hasAttribute(Attribute::ByVal); in hasByValAttr()
118 return hasAttribute(Attribute::ByRef); in hasByRefAttr()
131 return hasAttribute(Attribute::InAlloca); in hasInAllocaAttr()
240 return hasAttribute(Attribute::Nest); in hasNestAttr()
245 return hasAttribute(Attribute::NoAlias); in hasNoAliasAttr()
250 return hasAttribute(Attribute::NoCapture); in hasNoCaptureAttr()
255 return hasAttribute(Attribute::NoFree); in hasNoFreeAttr()
264 return hasAttribute(Attribute::InReg); in hasInRegAttr()
268 return hasAttribute(Attribute::Returned); in hasReturnedAttr()
272 return hasAttribute(Attribute::ZExt); in hasZExtAttr()
[all …]
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFCheckAndAdjustIR.cpp86 if (GV->hasAttribute(BPFCoreSharedInfo::AmaAttr) || in checkIR()
87 GV->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in checkIR()
H A DBPFAdjustOpt.cpp222 if (GV->hasAttribute(BPFCoreSharedInfo::AmaAttr) || in avoidSpeculation()
223 GV->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in avoidSpeculation()
H A DBPFMISimplifyPatchable.cpp291 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) in removeLD()
293 else if (!GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in removeLD()
H A DBTFDebug.cpp1044 if (!GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) && in processGlobalValue()
1045 !GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in processGlobalValue()
1054 GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)); in processGlobalValue()
1245 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) || in InstLower()
1246 GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) { in InstLower()
1272 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in InstLower()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp324 if ((Attrs.hasAttribute("bss-section") && Kind.isBSS()) || in SectionForGlobal()
325 (Attrs.hasAttribute("data-section") && Kind.isData()) || in SectionForGlobal()
326 (Attrs.hasAttribute("relro-section") && Kind.isReadOnlyWithRel()) || in SectionForGlobal()
327 (Attrs.hasAttribute("rodata-section") && Kind.isReadOnly())) { in SectionForGlobal()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DAttributes.h36 int hasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMachineFunctionInfo.cpp83 HasSwiftErrorArg |= Arg.hasAttribute(Attribute::SwiftError); in computeSignatureVTs()
84 HasSwiftSelfArg |= Arg.hasAttribute(Attribute::SwiftSelf); in computeSignatureVTs()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCSectionMachO.h54 bool hasAttribute(unsigned Value) const { in hasAttribute() function
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DAssumeBundleBuilder.cpp154 if (Arg->hasAttribute(RK.AttrKind) && in isKnowledgeWorthPreserving()
210 bool IsPoisonAttr = Attr.hasAttribute(Attribute::NonNull) || in addCall()
211 Attr.hasAttribute(Attribute::Alignment); in addCall()
423 bool HasSameKindAttr = Arg->hasAttribute(RK.AttrKind); in dropRedundantKnowledge()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp75 if (F.getAttributes().hasAttribute(Idx, Attribute::SExt)) { in runOnFunction()
/freebsd-13.1/contrib/llvm-project/clang/lib/Basic/
H A DAttributes.cpp8 int clang::hasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope, in hasAttribute() function in clang
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/
H A DMCSectionMachO.cpp163 return hasAttribute(MachO::S_ATTR_PURE_INSTRUCTIONS); in UseCodeAlign()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp745 if (Attrs.hasAttribute("bss-section") && Kind.isBSS()) { in selectExplicitSectionGlobal()
747 } else if (Attrs.hasAttribute("rodata-section") && Kind.isReadOnly()) { in selectExplicitSectionGlobal()
749 } else if (Attrs.hasAttribute("relro-section") && Kind.isReadOnlyWithRel()) { in selectExplicitSectionGlobal()
751 } else if (Attrs.hasAttribute("data-section") && Kind.isData()) { in selectExplicitSectionGlobal()
2224 if (GVar->hasAttribute("toc-data")) in getTargetSymbol()
2257 if (GVar->hasAttribute("toc-data")) in getExplicitSectionGlobal()
2301 if (GVar->hasAttribute("toc-data")) { in SelectSectionForGlobal()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptx86ABIFixups.cpp243 if (call_attribs.hasAttribute(I, llvm::Attribute::ByVal)) { in fixupRSAllocationStructByValCalls()

123