Home
last modified time | relevance | path

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

12345678910

/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAttributes.cpp235 bool Attribute::hasAttribute(AttrKind Kind) const { in hasAttribute() function in Attribute
236 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None); in hasAttribute()
239 bool Attribute::hasAttribute(StringRef Kind) const { in hasAttribute() function in Attribute
241 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
245 assert(hasAttribute(Attribute::Alignment) && in getAlignment()
251 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
257 assert(hasAttribute(Attribute::Dereferenceable) && in getDereferenceableBytes()
264 assert(hasAttribute(Attribute::DereferenceableOrNull) && in getDereferenceableOrNullBytes()
271 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
279 if (hasAttribute(Attribute::SanitizeAddress)) in getAsString()
[all …]
DAttributeImpl.h63 bool hasAttribute(Attribute::AttrKind A) const;
64 bool hasAttribute(StringRef Kind) const;
202 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function
205 bool hasAttribute(StringRef Kind) const;
DStatepoint.cpp55 return Attr.hasAttribute("statepoint-id") || in isStatepointDirectiveAttr()
56 Attr.hasAttribute("statepoint-num-patch-bytes"); in isStatepointDirectiveAttr()
/external/llvm/lib/IR/
DAttributes.cpp185 bool Attribute::hasAttribute(AttrKind Kind) const { in hasAttribute() function in Attribute
186 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None); in hasAttribute()
189 bool Attribute::hasAttribute(StringRef Kind) const { in hasAttribute() function in Attribute
191 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
195 assert(hasAttribute(Attribute::Alignment) && in getAlignment()
201 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
207 assert(hasAttribute(Attribute::Dereferenceable) && in getDereferenceableBytes()
214 assert(hasAttribute(Attribute::DereferenceableOrNull) && in getDereferenceableOrNullBytes()
221 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
229 if (hasAttribute(Attribute::SanitizeAddress)) in getAsString()
[all …]
DFunction.cpp79 hasAttribute(getArgNo()+1, Attribute::NonNull)) in hasNonNullAttr()
91 return hasAttribute(Attribute::ByVal); in hasByValAttr()
96 hasAttribute(getArgNo()+1, Attribute::SwiftSelf); in hasSwiftSelfAttr()
101 hasAttribute(getArgNo()+1, Attribute::SwiftError); in hasSwiftErrorAttr()
108 return hasAttribute(Attribute::InAlloca); in hasInAllocaAttr()
114 return Attrs.hasAttribute(getArgNo() + 1, Attribute::ByVal) || in hasByValOrInAllocaAttr()
115 Attrs.hasAttribute(getArgNo() + 1, Attribute::InAlloca); in hasByValOrInAllocaAttr()
140 return hasAttribute(Attribute::Nest); in hasNestAttr()
147 return hasAttribute(Attribute::NoAlias); in hasNoAliasAttr()
154 return hasAttribute(Attribute::NoCapture); in hasNoCaptureAttr()
[all …]
DVerifier.cpp1337 Assert(!Attrs.hasAttribute(Idx, Attribute::ByVal) && in verifyParameterAttrs()
1338 !Attrs.hasAttribute(Idx, Attribute::Nest) && in verifyParameterAttrs()
1339 !Attrs.hasAttribute(Idx, Attribute::StructRet) && in verifyParameterAttrs()
1340 !Attrs.hasAttribute(Idx, Attribute::NoCapture) && in verifyParameterAttrs()
1341 !Attrs.hasAttribute(Idx, Attribute::Returned) && in verifyParameterAttrs()
1342 !Attrs.hasAttribute(Idx, Attribute::InAlloca) && in verifyParameterAttrs()
1343 !Attrs.hasAttribute(Idx, Attribute::SwiftSelf) && in verifyParameterAttrs()
1344 !Attrs.hasAttribute(Idx, Attribute::SwiftError), in verifyParameterAttrs()
1353 AttrCount += Attrs.hasAttribute(Idx, Attribute::ByVal); in verifyParameterAttrs()
1354 AttrCount += Attrs.hasAttribute(Idx, Attribute::InAlloca); in verifyParameterAttrs()
[all …]
DStatepoint.cpp52 return Attr.hasAttribute("statepoint-id") || in isStatepointDirectiveAttr()
53 Attr.hasAttribute("statepoint-num-patch-bytes"); in isStatepointDirectiveAttr()
/external/llvm-project/llvm/lib/IR/
DAttributes.cpp290 bool Attribute::hasAttribute(AttrKind Kind) const { in hasAttribute() function in Attribute
291 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None); in hasAttribute()
294 bool Attribute::hasAttribute(StringRef Kind) const { in hasAttribute() function in Attribute
296 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
300 assert(hasAttribute(Attribute::Alignment) && in getAlignment()
306 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
312 assert(hasAttribute(Attribute::Dereferenceable) && in getDereferenceableBytes()
319 assert(hasAttribute(Attribute::DereferenceableOrNull) && in getDereferenceableOrNullBytes()
326 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
334 if (hasAttribute(Attribute::SanitizeAddress)) in getAsString()
[all …]
DAttributeImpl.h62 bool hasAttribute(Attribute::AttrKind A) const;
63 bool hasAttribute(StringRef Kind) const;
198 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function
241 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function
242 return AvailableAttrs.hasAttribute(Kind); in hasAttribute()
244 bool hasAttribute(StringRef Kind) const;
306 return AvailableFunctionAttrs.hasAttribute(Kind); in hasFnAttribute()
DStatepoint.cpp21 return Attr.hasAttribute("statepoint-id") || in isStatepointDirectiveAttr()
22 Attr.hasAttribute("statepoint-num-patch-bytes"); in isStatepointDirectiveAttr()
/external/llvm-project/llvm/unittests/IR/
DAttributesTest.cpp67 EXPECT_TRUE(AL.hasAttribute(AttributeList::ReturnIndex, Attribute::SExt)); in TEST()
89 EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly)); in TEST()
91 EXPECT_FALSE(AS.hasAttribute(Attribute::Alignment)); in TEST()
92 EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly)); in TEST()
96 EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly)); in TEST()
102 EXPECT_TRUE(AL.hasAttribute(0, Attribute::StackAlignment)); in TEST()
103 EXPECT_TRUE(AL.hasAttribute(0, Attribute::OptimizeNone)); in TEST()
113 EXPECT_TRUE(AL.hasAttribute(0, Attribute::StackAlignment)); in TEST()
114 EXPECT_TRUE(AL.hasAttribute(0, Attribute::OptimizeNone)); in TEST()
120 EXPECT_FALSE(AL.hasAttribute(0, Attribute::StackAlignment)); in TEST()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
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()
DAttributes.h127 bool hasAttribute(AttrKind Val) const;
130 bool hasAttribute(StringRef Val) const;
277 bool hasAttribute(Attribute::AttrKind Kind) const;
280 bool hasAttribute(StringRef Kind) const;
550 bool hasAttribute(unsigned Index, Attribute::AttrKind Kind) const;
553 bool hasAttribute(unsigned Index, StringRef Kind) const;
560 return hasAttribute(ArgNo + FirstArgIndex, Kind);
565 return hasAttribute(ArgNo + FirstArgIndex, Kind);
/external/llvm-project/llvm/include/llvm/IR/
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()
/external/llvm/include/llvm/IR/
DFunction.h203 return AttributeSets.hasAttribute(AttributeSet::FunctionIndex, Kind);
249 bool hasAttribute(unsigned i, Attribute::AttrKind Kind) const {
250 return getAttributes().hasAttribute(i, Kind);
395 return AttributeSets.hasAttribute(1, Attribute::StructRet) ||
396 AttributeSets.hasAttribute(2, Attribute::StructRet);
403 return AttributeSets.hasAttribute(n, Attribute::NoAlias);
412 return AttributeSets.hasAttribute(n, Attribute::NoCapture);
419 return AttributeSets.hasAttribute(n, Attribute::ReadNone);
427 AttributeSets.hasAttribute(n, Attribute::ReadOnly);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DELFObjectFile.cpp165 if (Attributes.hasAttribute(ARMBuildAttrs::CPU_arch)) in getARMFeatures()
169 if (Attributes.hasAttribute(ARMBuildAttrs::CPU_arch_profile)) { in getARMFeatures()
187 if (Attributes.hasAttribute(ARMBuildAttrs::THUMB_ISA_use)) { in getARMFeatures()
201 if (Attributes.hasAttribute(ARMBuildAttrs::FP_arch)) { in getARMFeatures()
224 if (Attributes.hasAttribute(ARMBuildAttrs::Advanced_SIMD_arch)) { in getARMFeatures()
242 if (Attributes.hasAttribute(ARMBuildAttrs::MVE_arch)) { in getARMFeatures()
260 if (Attributes.hasAttribute(ARMBuildAttrs::DIV_use)) { in getARMFeatures()
318 if (Attributes.hasAttribute(ARMBuildAttrs::CPU_arch)) { in setARMSubArch()
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DFunction.h272 bool hasAttribute(unsigned i, Attribute::AttrKind Kind) const { in hasAttribute() function
273 return getAttributes().hasAttribute(i, Kind); in hasAttribute()
418 return AttributeSets.hasAttribute(1, Attribute::StructRet) || in hasStructRetAttr()
419 AttributeSets.hasAttribute(2, Attribute::StructRet); in hasStructRetAttr()
426 return AttributeSets.hasAttribute(n, Attribute::NoAlias); in doesNotAlias()
435 return AttributeSets.hasAttribute(n, Attribute::NoCapture); in doesNotCapture()
442 return AttributeSets.hasAttribute(n, Attribute::ReadNone); in doesNotAccessMemory()
450 AttributeSets.hasAttribute(n, Attribute::ReadOnly); in onlyReadsMemory()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsTargetMachine.cpp163 std::string CPU = !CPUAttr.hasAttribute(Attribute::None) in getSubtargetImpl()
166 std::string FS = !FSAttr.hasAttribute(Attribute::None) in getSubtargetImpl()
170 !F.getFnAttribute("mips16").hasAttribute(Attribute::None); in getSubtargetImpl()
172 !F.getFnAttribute("nomips16").hasAttribute(Attribute::None); in getSubtargetImpl()
175 !F.getFnAttribute("micromips").hasAttribute(Attribute::None); in getSubtargetImpl()
177 !F.getFnAttribute("nomicromips").hasAttribute(Attribute::None); in getSubtargetImpl()
/external/deqp/executor/
DxeTestCaseListParser.cpp104 …const char* name = m_xmlParser.hasAttribute("Name") ? m_xmlParser.getAttribute("Name") : DE_… in parse()
105 …const char* description = m_xmlParser.hasAttribute("Description") ? m_xmlParser.getAttribute("Des… in parse()
106 …const char* caseType = m_xmlParser.hasAttribute("CaseType") ? m_xmlParser.getAttribute("CaseType… in parse()
/external/cldr/tools/python/src/cldr/
Drefmirror.py81 if not ref.hasAttribute('type'):
86 if ref.hasAttribute('alt'):
92 if not ref.hasAttribute('uri'):
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DCallLowering.cpp83 if (Attrs.hasAttribute(OpIdx, Attribute::ZExt)) in setArgFlags()
85 if (Attrs.hasAttribute(OpIdx, Attribute::SExt)) in setArgFlags()
87 if (Attrs.hasAttribute(OpIdx, Attribute::InReg)) in setArgFlags()
89 if (Attrs.hasAttribute(OpIdx, Attribute::StructRet)) in setArgFlags()
91 if (Attrs.hasAttribute(OpIdx, Attribute::SwiftSelf)) in setArgFlags()
93 if (Attrs.hasAttribute(OpIdx, Attribute::SwiftError)) in setArgFlags()
95 if (Attrs.hasAttribute(OpIdx, Attribute::ByVal)) in setArgFlags()
97 if (Attrs.hasAttribute(OpIdx, Attribute::InAlloca)) in setArgFlags()
115 if (Attrs.hasAttribute(OpIdx, Attribute::Nest)) in setArgFlags()
/external/llvm/lib/Target/Mips/
DMipsTargetMachine.cpp140 std::string CPU = !CPUAttr.hasAttribute(Attribute::None) in getSubtargetImpl()
143 std::string FS = !FSAttr.hasAttribute(Attribute::None) in getSubtargetImpl()
147 !F.getFnAttribute("mips16").hasAttribute(Attribute::None); in getSubtargetImpl()
149 !F.getFnAttribute("nomips16").hasAttribute(Attribute::None); in getSubtargetImpl()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/
DTargetLoweringObjectFile.cpp254 if ((Attrs.hasAttribute("bss-section") && Kind.isBSS()) || in SectionForGlobal()
255 (Attrs.hasAttribute("data-section") && Kind.isData()) || in SectionForGlobal()
256 (Attrs.hasAttribute("relro-section") && Kind.isReadOnlyWithRel()) || in SectionForGlobal()
257 (Attrs.hasAttribute("rodata-section") && Kind.isReadOnly())) { in SectionForGlobal()
/external/llvm/lib/CodeGen/
DXRayInstrumentation.cpp43 bool AlwaysInstrument = !InstrAttr.hasAttribute(Attribute::None) && in runOnMachineFunction()
49 if (Attr.hasAttribute(Attribute::None) || !Attr.isStringAttribute()) in runOnMachineFunction()
/external/llvm-project/llvm/lib/Target/
DTargetLoweringObjectFile.cpp269 if ((Attrs.hasAttribute("bss-section") && Kind.isBSS()) || in SectionForGlobal()
270 (Attrs.hasAttribute("data-section") && Kind.isData()) || in SectionForGlobal()
271 (Attrs.hasAttribute("relro-section") && Kind.isReadOnlyWithRel()) || in SectionForGlobal()
272 (Attrs.hasAttribute("rodata-section") && Kind.isReadOnly())) { in SectionForGlobal()

12345678910