Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DGlobalVariable.h223 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function
224 return Attrs.hasAttribute(Kind); in hasAttribute()
228 bool hasAttribute(StringRef Kind) const { in hasAttribute() function
229 return Attrs.hasAttribute(Kind); in hasAttribute()
269 return getAttributes().hasAttribute("bss-section") || in hasImplicitSection()
270 getAttributes().hasAttribute("data-section") || in hasImplicitSection()
271 getAttributes().hasAttribute("relro-section") || in hasImplicitSection()
272 getAttributes().hasAttribute("rodata-section"); in hasImplicitSection()
H A DArgument.h183 LLVM_ABI bool hasAttribute(Attribute::AttrKind Kind) const;
185 LLVM_ABI bool hasAttribute(StringRef Kind) const;
H A DAttributes.h226 LLVM_ABI bool hasAttribute(AttrKind Val) const;
229 LLVM_ABI bool hasAttribute(StringRef Val) const;
430 LLVM_ABI bool hasAttribute(Attribute::AttrKind Kind) const;
433 LLVM_ABI bool hasAttribute(StringRef Kind) const;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAttributes.cpp426 bool Attribute::hasAttribute(AttrKind Kind) const { in hasAttribute() function in Attribute
427 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None); in hasAttribute()
430 bool Attribute::hasAttribute(StringRef Kind) const { in hasAttribute() function in Attribute
432 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
436 assert(hasAttribute(Attribute::Alignment) && in getAlignment()
442 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
448 assert(hasAttribute(Attribute::Dereferenceable) && in getDereferenceableBytes()
455 assert(hasAttribute(Attribute::DereferenceableOrNull) && in getDereferenceableOrNullBytes()
463 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
469 assert(hasAttribute(Attribute::VScaleRange) && in getVScaleRangeMin()
[all …]
H A DAttributeImpl.h73 bool hasAttribute(Attribute::AttrKind A) const;
74 bool hasAttribute(StringRef Kind) const;
280 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function
323 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function
324 return AvailableAttrs.hasAttribute(Kind); in hasAttribute()
326 bool hasAttribute(StringRef Kind) const;
390 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 DFunction.cpp130 return hasAttribute(Attribute::ByVal); in hasByValAttr()
136 return hasAttribute(Attribute::DeadOnReturn); in hasDeadOnReturnAttr()
142 return hasAttribute(Attribute::ByRef); in hasByRefAttr()
155 return hasAttribute(Attribute::InAlloca); in hasInAllocaAttr()
161 return hasAttribute(Attribute::Preallocated); in hasPreallocatedAttr()
270 return hasAttribute(Attribute::Nest); in hasNestAttr()
275 return hasAttribute(Attribute::NoAlias); in hasNoAliasAttr()
285 return hasAttribute(Attribute::NoFree); in hasNoFreeAttr()
290 return hasAttribute(Attribute::StructRet); in hasStructRetAttr()
294 return hasAttribute(Attribute::InReg); in hasInRegAttr()
[all …]
H A DVerifier.cpp2007 if (Attrs.hasAttribute(Attribute::ImmArg)) { in verifyParameterAttrs()
2009 Attrs.getNumAttributes() - Attrs.hasAttribute(Attribute::Range); in verifyParameterAttrs()
2019 AttrCount += Attrs.hasAttribute(Attribute::ByVal); in verifyParameterAttrs()
2020 AttrCount += Attrs.hasAttribute(Attribute::InAlloca); in verifyParameterAttrs()
2021 AttrCount += Attrs.hasAttribute(Attribute::Preallocated); in verifyParameterAttrs()
2022 AttrCount += Attrs.hasAttribute(Attribute::StructRet) || in verifyParameterAttrs()
2023 Attrs.hasAttribute(Attribute::InReg); in verifyParameterAttrs()
2024 AttrCount += Attrs.hasAttribute(Attribute::Nest); in verifyParameterAttrs()
2025 AttrCount += Attrs.hasAttribute(Attribute::ByRef); in verifyParameterAttrs()
2031 Check(!(Attrs.hasAttribute(Attribute::InAlloca) && in verifyParameterAttrs()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DAttributes.h22 int hasAttribute(AttributeCommonInfo::Syntax Syntax, llvm::StringRef ScopeName,
26 int hasAttribute(AttributeCommonInfo::Syntax Syntax,
30 int hasAttribute(AttributeCommonInfo::Syntax Syntax,
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DAttributes.cpp51 int clang::hasAttribute(AttributeCommonInfo::Syntax Syntax, StringRef ScopeName, in hasAttribute() function in clang
82 int clang::hasAttribute(AttributeCommonInfo::Syntax Syntax, in hasAttribute() function in clang
86 return hasAttribute(Syntax, Scope ? Scope->getName() : "", Attr->getName(), in hasAttribute()
90 int clang::hasAttribute(AttributeCommonInfo::Syntax Syntax, in hasAttribute() function in clang
93 return hasAttribute(Syntax, Scope, Attr, Target, LangOpts, in hasAttribute()
283 if (hasAttribute(getSyntax(), ScopeName, *CorrectedAttrName, Target, in tryGetCorrectedAttrName()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86CallLowering.cpp
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/GISel/
H A DX86CallLowering.cpp280 if (Arg.hasAttribute(Attribute::ByVal) || in lowerFormalArguments()
281 Arg.hasAttribute(Attribute::InReg) || in lowerFormalArguments()
282 Arg.hasAttribute(Attribute::SwiftSelf) || in lowerFormalArguments()
283 Arg.hasAttribute(Attribute::SwiftError) || in lowerFormalArguments()
284 Arg.hasAttribute(Attribute::Nest) || VRegs[Idx].size() > 1) in lowerFormalArguments()
287 if (Arg.hasAttribute(Attribute::StructRet)) { in lowerFormalArguments()
/freebsd/contrib/llvm-project/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp356 if ((Attrs.hasAttribute("bss-section") && Kind.isBSS()) || in SectionForGlobal()
357 (Attrs.hasAttribute("data-section") && Kind.isData()) || in SectionForGlobal()
358 (Attrs.hasAttribute("relro-section") && Kind.isReadOnlyWithRel()) || in SectionForGlobal()
359 (Attrs.hasAttribute("rodata-section") && Kind.isReadOnly())) { in SectionForGlobal()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMachineFunctionInfo.cpp99 HasSwiftErrorArg |= Arg.hasAttribute(Attribute::SwiftError); in computeSignatureVTs()
100 HasSwiftSelfArg |= Arg.hasAttribute(Attribute::SwiftSelf); in computeSignatureVTs()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp353 if (Arg.hasAttribute(Attribute::Alignment) && !ST->isShader()) { in lowerFormalArguments()
359 if (Arg.hasAttribute(Attribute::ReadOnly)) { in lowerFormalArguments()
365 if (Arg.hasAttribute(Attribute::ZExt)) { in lowerFormalArguments()
371 if (Arg.hasAttribute(Attribute::NoAlias)) { in lowerFormalArguments()
377 if (Arg.hasAttribute(Attribute::ByVal)) { in lowerFormalArguments()
383 if (Arg.hasAttribute(Attribute::StructRet)) { in lowerFormalArguments()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCSectionMachO.h62 bool hasAttribute(unsigned Value) const { in hasAttribute() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DAssumeBundleBuilder.cpp156 if (Arg->hasAttribute(RK.AttrKind) && in isKnowledgeWorthPreserving()
209 bool IsPoisonAttr = Attr.hasAttribute(Attribute::NonNull) || in addCall()
210 Attr.hasAttribute(Attribute::Alignment); in addCall()
425 bool HasSameKindAttr = Arg->hasAttribute(RK.AttrKind); in dropRedundantKnowledge()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelArguments.cpp178 if (Arg.hasAttribute(Attribute::NoUndef)) in lowerKernelArguments()
181 if (Arg.hasAttribute(Attribute::Range)) { in lowerKernelArguments()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp270 if (GV->hasAttribute(BPFCoreSharedInfo::AmaAttr) || in avoidSpeculation()
271 GV->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in avoidSpeculation()
H A DBPFMISimplifyPatchable.cpp353 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) in removeLD()
355 else if (!GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in removeLD()
H A DBPFCheckAndAdjustIR.cpp95 if (GV->hasAttribute(BPFCoreSharedInfo::AmaAttr) || in checkIR()
96 GV->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in checkIR()
H A DBTFDebug.cpp1417 if (!GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) && in processGlobalValue()
1418 !GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in processGlobalValue()
1427 GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)); in processGlobalValue()
1651 if (!GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) && in InstLower()
1652 !GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in InstLower()
1675 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in InstLower()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp125 if (Section.hasAttribute(MachO::S_ATTR_DEBUG)) in canUseLocalRelocation()
318 if (Section.hasAttribute(MachO::S_ATTR_DEBUG)) in recordRelocation()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCSubtarget.cpp196 return !GVar->hasAttribute("toc-data"); in isGVIndirectSymbol()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DProfileSummaryBuilder.cpp124 } else if (FS.getContext().hasAttribute( in addRecord()

1234