Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/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.h168 bool hasAttribute(Attribute::AttrKind Kind) const;
H A DAttributes.h188 bool hasAttribute(AttrKind Val) const;
191 bool hasAttribute(StringRef Val) const;
358 bool hasAttribute(Attribute::AttrKind Kind) const;
361 bool hasAttribute(StringRef Kind) const;
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DAttributes.cpp327 bool Attribute::hasAttribute(AttrKind Kind) const { in hasAttribute() function in Attribute
328 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None); in hasAttribute()
331 bool Attribute::hasAttribute(StringRef Kind) const { in hasAttribute() function in Attribute
333 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
337 assert(hasAttribute(Attribute::Alignment) && in getAlignment()
343 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
349 assert(hasAttribute(Attribute::Dereferenceable) && in getDereferenceableBytes()
356 assert(hasAttribute(Attribute::DereferenceableOrNull) && in getDereferenceableOrNullBytes()
364 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
370 assert(hasAttribute(Attribute::VScaleRange) && in getVScaleRangeMin()
[all …]
H A DAttributeImpl.h63 bool hasAttribute(Attribute::AttrKind A) const;
64 bool hasAttribute(StringRef Kind) const;
206 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function
249 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function
250 return AvailableAttrs.hasAttribute(Kind); in hasAttribute()
252 bool hasAttribute(StringRef Kind) const;
317 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.cpp1800 if (Attrs.hasAttribute(Attribute::ImmArg)) { in verifyParameterAttrs()
1808 AttrCount += Attrs.hasAttribute(Attribute::ByVal); in verifyParameterAttrs()
1809 AttrCount += Attrs.hasAttribute(Attribute::InAlloca); in verifyParameterAttrs()
1810 AttrCount += Attrs.hasAttribute(Attribute::Preallocated); in verifyParameterAttrs()
1811 AttrCount += Attrs.hasAttribute(Attribute::StructRet) || in verifyParameterAttrs()
1812 Attrs.hasAttribute(Attribute::InReg); in verifyParameterAttrs()
1813 AttrCount += Attrs.hasAttribute(Attribute::Nest); in verifyParameterAttrs()
1814 AttrCount += Attrs.hasAttribute(Attribute::ByRef); in verifyParameterAttrs()
1820 Check(!(Attrs.hasAttribute(Attribute::InAlloca) && in verifyParameterAttrs()
1821 Attrs.hasAttribute(Attribute::ReadOnly)), 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()
136 return hasAttribute(Attribute::Preallocated); in hasPreallocatedAttr()
234 return hasAttribute(Attribute::Nest); in hasNestAttr()
239 return hasAttribute(Attribute::NoAlias); in hasNoAliasAttr()
244 return hasAttribute(Attribute::NoCapture); in hasNoCaptureAttr()
249 return hasAttribute(Attribute::NoFree); in hasNoFreeAttr()
254 return hasAttribute(Attribute::StructRet); in hasStructRetAttr()
258 return hasAttribute(Attribute::InReg); in hasInRegAttr()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86CallLowering.cpp272 if (Arg.hasAttribute(Attribute::ByVal) || in lowerFormalArguments()
273 Arg.hasAttribute(Attribute::InReg) || in lowerFormalArguments()
274 Arg.hasAttribute(Attribute::StructRet) || in lowerFormalArguments()
275 Arg.hasAttribute(Attribute::SwiftSelf) || in lowerFormalArguments()
276 Arg.hasAttribute(Attribute::SwiftError) || in lowerFormalArguments()
277 Arg.hasAttribute(Attribute::Nest) || VRegs[Idx].size() > 1) in lowerFormalArguments()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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.cpp1297 if (!GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) && in processGlobalValue()
1298 !GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) in processGlobalValue()
1307 GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)); in processGlobalValue()
1505 if (GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr) || in InstLower()
1506 GVar->hasAttribute(BPFCoreSharedInfo::TypeIdAttr)) { in InstLower()
1532 if (GVar && GVar->hasAttribute(BPFCoreSharedInfo::AmaAttr)) { in InstLower()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DAttributes.h22 int hasAttribute(AttributeCommonInfo::Syntax Syntax,
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMachineFunctionInfo.cpp98 HasSwiftErrorArg |= Arg.hasAttribute(Attribute::SwiftError); in computeSignatureVTs()
99 HasSwiftSelfArg |= Arg.hasAttribute(Attribute::SwiftSelf); in computeSignatureVTs()
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp247 if (Arg.hasAttribute(Attribute::Alignment)) { in lowerFormalArguments()
253 if (Arg.hasAttribute(Attribute::ReadOnly)) { in lowerFormalArguments()
259 if (Arg.hasAttribute(Attribute::ZExt)) { in lowerFormalArguments()
265 if (Arg.hasAttribute(Attribute::NoAlias)) { in lowerFormalArguments()
/openbsd-src/gnu/llvm/llvm/include/llvm/MC/
H A DMCSectionMachO.h54 bool hasAttribute(unsigned Value) const { in hasAttribute() function
/openbsd-src/gnu/llvm/llvm/tools/llvm-profgen/
H A DCSPreInliner.cpp152 return Candidate.CalleeSamples->getContext().hasAttribute( in shouldInline()
248 Candidate.CalleeSamples->getContext().hasAttribute(ContextWasInlined); in processFunction()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVSExtWRemoval.cpp178 if ((BitWidth <= 32 && Attrs.hasAttribute(Attribute::SExt)) || in isSignExtendedW()
179 (BitWidth < 32 && Attrs.hasAttribute(Attribute::ZExt))) in isSignExtendedW()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/tools/bugpoint-passes/
H A DTestPasses.cpp147 if (A.hasAttribute("bugpoint-crash")) in runOnFunction()
/openbsd-src/gnu/llvm/clang/lib/Basic/
H A DAttributes.cpp7 int clang::hasAttribute(AttributeCommonInfo::Syntax Syntax, in hasAttribute() function in clang
/openbsd-src/gnu/llvm/llvm/lib/MC/
H A DMCSectionMachO.cpp172 return hasAttribute(MachO::S_ATTR_PURE_INSTRUCTIONS); in useCodeAlign()

123