Home
last modified time | relevance | path

Searched refs:AttrKind (Results 1 – 25 of 144) sorted by relevance

123456

/external/swiftshader/third_party/llvm-10.0/configs/common/lib/IR/
DAttributesCompatFunc.inc70 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
71 return StringSwitch<Attribute::AttrKind>(AttrName)
144 Attribute::AttrKind Kind) {
149 Attribute::AttrKind Kind, bool Val) {
172 static enum Attribute::AttrKind getKind() {
177 static enum Attribute::AttrKind getKind() {
182 static enum Attribute::AttrKind getKind() {
187 static enum Attribute::AttrKind getKind() {
192 static enum Attribute::AttrKind getKind() {
197 static enum Attribute::AttrKind getKind() {
[all …]
/external/swiftshader/third_party/llvm-10.0/configs/common/include/llvm/IR/
DAttributes.inc70 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
71 return StringSwitch<Attribute::AttrKind>(AttrName)
144 Attribute::AttrKind Kind) {
149 Attribute::AttrKind Kind, bool Val) {
172 static enum Attribute::AttrKind getKind() {
177 static enum Attribute::AttrKind getKind() {
182 static enum Attribute::AttrKind getKind() {
187 static enum Attribute::AttrKind getKind() {
192 static enum Attribute::AttrKind getKind() {
197 static enum Attribute::AttrKind getKind() {
[all …]
/external/swiftshader/third_party/llvm-subzero/build/Fuchsia/include/llvm/IR/
DAttributes.gen58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
59 return StringSwitch<Attribute::AttrKind>(AttrName)
120 Attribute::AttrKind Kind) {
125 Attribute::AttrKind Kind, bool Val) {
148 static enum Attribute::AttrKind getKind() {
153 static enum Attribute::AttrKind getKind() {
158 static enum Attribute::AttrKind getKind() {
163 static enum Attribute::AttrKind getKind() {
168 static enum Attribute::AttrKind getKind() {
173 static enum Attribute::AttrKind getKind() {
[all …]
/external/swiftshader/third_party/llvm-subzero/build/Android/include/llvm/IR/
DAttributes.gen58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
59 return StringSwitch<Attribute::AttrKind>(AttrName)
120 Attribute::AttrKind Kind) {
125 Attribute::AttrKind Kind, bool Val) {
148 static enum Attribute::AttrKind getKind() {
153 static enum Attribute::AttrKind getKind() {
158 static enum Attribute::AttrKind getKind() {
163 static enum Attribute::AttrKind getKind() {
168 static enum Attribute::AttrKind getKind() {
173 static enum Attribute::AttrKind getKind() {
[all …]
/external/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/IR/
DAttributes.gen58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
59 return StringSwitch<Attribute::AttrKind>(AttrName)
120 Attribute::AttrKind Kind) {
125 Attribute::AttrKind Kind, bool Val) {
148 static enum Attribute::AttrKind getKind() {
153 static enum Attribute::AttrKind getKind() {
158 static enum Attribute::AttrKind getKind() {
163 static enum Attribute::AttrKind getKind() {
168 static enum Attribute::AttrKind getKind() {
173 static enum Attribute::AttrKind getKind() {
[all …]
/external/swiftshader/third_party/llvm-subzero/build/MacOS/include/llvm/IR/
DAttributes.gen58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
59 return StringSwitch<Attribute::AttrKind>(AttrName)
120 Attribute::AttrKind Kind) {
125 Attribute::AttrKind Kind, bool Val) {
148 static enum Attribute::AttrKind getKind() {
153 static enum Attribute::AttrKind getKind() {
158 static enum Attribute::AttrKind getKind() {
163 static enum Attribute::AttrKind getKind() {
168 static enum Attribute::AttrKind getKind() {
173 static enum Attribute::AttrKind getKind() {
[all …]
/external/swiftshader/third_party/llvm-subzero/build/Windows/include/llvm/IR/
DAttributes.gen58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
59 return StringSwitch<Attribute::AttrKind>(AttrName)
120 Attribute::AttrKind Kind) {
125 Attribute::AttrKind Kind, bool Val) {
148 static enum Attribute::AttrKind getKind() {
153 static enum Attribute::AttrKind getKind() {
158 static enum Attribute::AttrKind getKind() {
163 static enum Attribute::AttrKind getKind() {
168 static enum Attribute::AttrKind getKind() {
173 static enum Attribute::AttrKind getKind() {
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DAttributes.inc58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
59 return StringSwitch<Attribute::AttrKind>(AttrName)
120 Attribute::AttrKind Kind) {
125 Attribute::AttrKind Kind, bool Val) {
148 static enum Attribute::AttrKind getKind() {
153 static enum Attribute::AttrKind getKind() {
158 static enum Attribute::AttrKind getKind() {
163 static enum Attribute::AttrKind getKind() {
168 static enum Attribute::AttrKind getKind() {
173 static enum Attribute::AttrKind getKind() {
[all …]
DAttributes.h67 enum AttrKind { enum
87 static Attribute get(LLVMContext &Context, AttrKind Kind, uint64_t Val = 0);
118 bool hasAttribute(AttrKind Val) const;
125 Attribute::AttrKind getKindAsEnum() const;
246 ArrayRef<Attribute::AttrKind> Kinds);
254 Attribute::AttrKind Kind) const;
275 Attribute::AttrKind Kind) const;
329 bool hasAttribute(unsigned Index, Attribute::AttrKind Kind) const;
339 bool hasFnAttribute(Attribute::AttrKind Kind) const;
348 bool hasAttrSomewhere(Attribute::AttrKind Kind,
[all …]
/external/llvm-project/llvm/include/llvm/Analysis/
DAssumeBundleQueries.h45 Attribute::AttrKind Kind,
51 template<> struct DenseMapInfo<Attribute::AttrKind> {
52 static Attribute::AttrKind getEmptyKey() {
55 static Attribute::AttrKind getTombstoneKey() {
58 static unsigned getHashValue(Attribute::AttrKind AK) {
61 static bool isEqual(Attribute::AttrKind LHS, Attribute::AttrKind RHS) {
69 using RetainedKnowledgeKey = std::pair<Value *, Attribute::AttrKind>;
101 Attribute::AttrKind AttrKind = Attribute::None;
105 return AttrKind == Other.AttrKind && WasOn == Other.WasOn &&
109 operator bool() const { return AttrKind != Attribute::None; }
[all …]
/external/llvm-project/clang/include/clang/Basic/
DAttributeCommonInfo.h67 unsigned AttrKind : 16; variable
77 : AttrRange(AttrRange), ScopeLoc(), AttrKind(0), SyntaxUsed(0), in AttributeCommonInfo()
81 : AttrRange(AttrLoc), ScopeLoc(), AttrKind(0), SyntaxUsed(0), in AttributeCommonInfo()
89 AttrKind(getParsedKind(AttrName, ScopeName, SyntaxUsed)), in AttributeCommonInfo()
94 SourceLocation ScopeLoc, Kind AttrKind, Syntax SyntaxUsed) in AttributeCommonInfo() argument
96 ScopeLoc(ScopeLoc), AttrKind(AttrKind), SyntaxUsed(SyntaxUsed), in AttributeCommonInfo()
101 SourceLocation ScopeLoc, Kind AttrKind, Syntax SyntaxUsed, in AttributeCommonInfo() argument
104 ScopeLoc(ScopeLoc), AttrKind(AttrKind), SyntaxUsed(SyntaxUsed), in AttributeCommonInfo()
110 ScopeLoc(), AttrKind(getParsedKind(AttrName, ScopeName, SyntaxUsed)), in AttributeCommonInfo()
115 AttrKind(K), SyntaxUsed(SyntaxUsed), in AttributeCommonInfo()
[all …]
/external/llvm-project/llvm/lib/IR/
DAttributeImpl.h62 bool hasAttribute(Attribute::AttrKind A) const;
65 Attribute::AttrKind getKindAsEnum() const;
87 static void Profile(FoldingSetNodeID &ID, Attribute::AttrKind Kind, in Profile()
98 static void Profile(FoldingSetNodeID &ID, Attribute::AttrKind Kind, in Profile()
116 Attribute::AttrKind Kind;
119 EnumAttributeImpl(AttrEntryKind ID, Attribute::AttrKind Kind) in EnumAttributeImpl()
123 EnumAttributeImpl(Attribute::AttrKind Kind) in EnumAttributeImpl()
125 assert(Kind != Attribute::AttrKind::None && in EnumAttributeImpl()
129 Attribute::AttrKind getEnumKind() const { return Kind; } in getEnumKind()
136 IntAttributeImpl(Attribute::AttrKind Kind, uint64_t Val) in IntAttributeImpl()
[all …]
DAttributes.cpp81 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get()
128 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get()
195 Attribute::AttrKind Attribute::getAttrKindFromName(StringRef AttrName) { in getAttrKindFromName()
196 return StringSwitch<Attribute::AttrKind>(AttrName) in getAttrKindFromName()
204 StringRef Attribute::getNameFromAttrKind(Attribute::AttrKind AttrKind) { in getNameFromAttrKind() argument
205 switch (AttrKind) { in getNameFromAttrKind()
218 bool Attribute::doesAttrKindHaveArgument(Attribute::AttrKind AttrKind) { in doesAttrKindHaveArgument() argument
219 return AttrKind == Attribute::Alignment || in doesAttrKindHaveArgument()
220 AttrKind == Attribute::StackAlignment || in doesAttrKindHaveArgument()
221 AttrKind == Attribute::Dereferenceable || in doesAttrKindHaveArgument()
[all …]
/external/llvm-project/llvm/include/llvm/IR/
DAttributes.h70 enum AttrKind { enum
94 static Attribute get(LLVMContext &Context, AttrKind Kind, uint64_t Val = 0);
97 static Attribute get(LLVMContext &Context, AttrKind Kind, Type *Ty);
122 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName);
124 static StringRef getNameFromAttrKind(Attribute::AttrKind AttrKind);
127 static bool doesAttrKindHaveArgument(Attribute::AttrKind AttrKind);
154 bool hasAttribute(AttrKind Val) const;
161 Attribute::AttrKind getKindAsEnum() const;
268 Attribute::AttrKind Kind) const;
283 Attribute::AttrKind Kind) const;
[all …]
DArgument.h148 void addAttr(Attribute::AttrKind Kind);
153 void removeAttr(Attribute::AttrKind Kind);
156 bool hasAttribute(Attribute::AttrKind Kind) const;
158 Attribute getAttribute(Attribute::AttrKind Kind) const;
DFunction.h245 void addFnAttr(Attribute::AttrKind Kind) { in addFnAttr()
261 void removeFnAttr(Attribute::AttrKind Kind) { in removeFnAttr()
345 bool hasFnAttribute(Attribute::AttrKind Kind) const { in hasFnAttribute()
355 Attribute getFnAttribute(Attribute::AttrKind Kind) const { in getFnAttribute()
394 void addAttribute(unsigned i, Attribute::AttrKind Kind);
403 void addParamAttr(unsigned ArgNo, Attribute::AttrKind Kind);
412 void removeAttribute(unsigned i, Attribute::AttrKind Kind);
421 void removeParamAttr(unsigned ArgNo, Attribute::AttrKind Kind);
430 bool hasAttribute(unsigned i, Attribute::AttrKind Kind) const { in hasAttribute()
435 bool hasParamAttribute(unsigned ArgNo, Attribute::AttrKind Kind) const { in hasParamAttribute()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAttributeImpl.h63 bool hasAttribute(Attribute::AttrKind A) const;
66 Attribute::AttrKind getKindAsEnum() const;
88 static void Profile(FoldingSetNodeID &ID, Attribute::AttrKind Kind, in Profile()
99 static void Profile(FoldingSetNodeID &ID, Attribute::AttrKind Kind, in Profile()
116 Attribute::AttrKind Kind;
119 EnumAttributeImpl(AttrEntryKind ID, Attribute::AttrKind Kind) in EnumAttributeImpl()
123 EnumAttributeImpl(Attribute::AttrKind Kind) in EnumAttributeImpl()
126 Attribute::AttrKind getEnumKind() const { return Kind; } in getEnumKind()
135 IntAttributeImpl(Attribute::AttrKind Kind, uint64_t Val) in IntAttributeImpl()
167 TypeAttributeImpl(Attribute::AttrKind Kind, Type *Ty) in TypeAttributeImpl()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DAttributes.h70 enum AttrKind { enum
91 static Attribute get(LLVMContext &Context, AttrKind Kind, uint64_t Val = 0);
94 static Attribute get(LLVMContext &Context, AttrKind Kind, Type *Ty);
127 bool hasAttribute(AttrKind Val) const;
134 Attribute::AttrKind getKindAsEnum() const;
243 Attribute::AttrKind Kind) const;
258 Attribute::AttrKind Kind) const;
277 bool hasAttribute(Attribute::AttrKind Kind) const;
283 Attribute getAttribute(Attribute::AttrKind Kind) const;
384 ArrayRef<Attribute::AttrKind> Kinds);
[all …]
DArgument.h122 void addAttr(Attribute::AttrKind Kind);
127 void removeAttr(Attribute::AttrKind Kind);
130 bool hasAttribute(Attribute::AttrKind Kind) const;
132 Attribute getAttribute(Attribute::AttrKind Kind) const;
DFunction.h229 void addFnAttr(Attribute::AttrKind Kind) { in addFnAttr()
245 void removeFnAttr(Attribute::AttrKind Kind) { in removeFnAttr()
323 bool hasFnAttribute(Attribute::AttrKind Kind) const { in hasFnAttribute()
333 Attribute getFnAttribute(Attribute::AttrKind Kind) const { in getFnAttribute()
362 void addAttribute(unsigned i, Attribute::AttrKind Kind);
371 void addParamAttr(unsigned ArgNo, Attribute::AttrKind Kind);
380 void removeAttribute(unsigned i, Attribute::AttrKind Kind);
389 void removeParamAttr(unsigned ArgNo, Attribute::AttrKind Kind);
398 bool hasAttribute(unsigned i, Attribute::AttrKind Kind) const { in hasAttribute()
403 bool hasParamAttribute(unsigned ArgNo, Attribute::AttrKind Kind) const { in hasParamAttribute()
[all …]
/external/llvm/lib/IR/
DAttributeImpl.h59 bool hasAttribute(Attribute::AttrKind A) const;
62 Attribute::AttrKind getKindAsEnum() const;
79 static void Profile(FoldingSetNodeID &ID, Attribute::AttrKind Kind, in Profile()
90 static uint64_t getAttrMask(Attribute::AttrKind Val);
102 Attribute::AttrKind Kind;
105 EnumAttributeImpl(AttrEntryKind ID, Attribute::AttrKind Kind) in EnumAttributeImpl()
109 EnumAttributeImpl(Attribute::AttrKind Kind) in EnumAttributeImpl()
112 Attribute::AttrKind getEnumKind() const { return Kind; } in getEnumKind()
120 IntAttributeImpl(Attribute::AttrKind Kind, uint64_t Val) in IntAttributeImpl()
183 bool hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute()
[all …]
/external/llvm/include/llvm/IR/
DAttributes.h67 enum AttrKind { enum
87 static Attribute get(LLVMContext &Context, AttrKind Kind, uint64_t Val = 0);
118 bool hasAttribute(AttrKind Val) const;
125 Attribute::AttrKind getKindAsEnum() const;
245 ArrayRef<Attribute::AttrKind> Kinds);
253 Attribute::AttrKind Kind) const;
274 Attribute::AttrKind Kind) const;
328 bool hasAttribute(unsigned Index, Attribute::AttrKind Kind) const;
338 bool hasFnAttribute(Attribute::AttrKind Kind) const;
343 bool hasAttrSomewhere(Attribute::AttrKind Kind,
[all …]
/external/llvm-project/llvm/unittests/Analysis/
DAssumeBundleQueriesTest.cpp61 Attribute::AttrKind Kind, unsigned Value) { in hasTheRightValue()
94 Attribute::AttrKind::Dereferenceable, 16)); in TEST()
96 Attribute::AttrKind::Alignment, 4)); in TEST()
98 Attribute::AttrKind::Alignment, 4)); in TEST()
118 Attribute::AttrKind::Dereferenceable, 48)); in TEST()
120 Attribute::AttrKind::Alignment, 64)); in TEST()
122 Attribute::AttrKind::Alignment, 64)); in TEST()
157 Attribute::AttrKind::Alignment, 32)); in TEST()
159 Attribute::AttrKind::Dereferenceable, 48)); in TEST()
161 Attribute::AttrKind::Dereferenceable, 28)); in TEST()
[all …]
/external/llvm-project/llvm/lib/Analysis/
DAssumeBundleQueries.cpp80 std::pair<Value *, Attribute::AttrKind> Key{ in fillMapFromAssume()
108 Result.AttrKind = Attribute::getAttrKindFromName(BOI.Tag->getKey()); in getKnowledgeFromBundle()
119 if (Result.AttrKind == Attribute::Alignment) in getKnowledgeFromBundle()
154 ArrayRef<Attribute::AttrKind> AttrKinds) { in getKnowledgeFromUse()
161 if (Attr == RK.AttrKind) in getKnowledgeFromUse()
168 ArrayRef<Attribute::AttrKind> AttrKinds, in getKnowledgeForValue()
185 if (is_contained(AttrKinds, RK.AttrKind) && in getKnowledgeForValue()
200 if (is_contained(AttrKinds, RK.AttrKind) && in getKnowledgeForValue()
210 const Value *V, ArrayRef<Attribute::AttrKind> AttrKinds, in getKnowledgeValidInContext()
/external/llvm-project/llvm/lib/Transforms/Utils/
DAssumeBundleBuilder.cpp52 bool isUsefullToPreserve(Attribute::AttrKind Kind) { in isUsefullToPreserve()
69 switch (RK.AttrKind) { in canonicalizedKnowledge()
104 using MapKey = std::pair<Value *, Attribute::AttrKind>;
120 RK.WasOn, {RK.AttrKind}, AC, in tryToPreserveWithoutAddingAssume()
154 if (Arg->hasAttribute(RK.AttrKind) && in isKnowledgeWorthPreserving()
155 (!Attribute::doesAttrKindHaveArgument(RK.AttrKind) || in isKnowledgeWorthPreserving()
156 Arg->getAttribute(RK.AttrKind).getValueAsInt() >= RK.ArgValue)) in isKnowledgeWorthPreserving()
179 MapKey Key{RK.WasOn, RK.AttrKind}; in addKnowledge()
369 SmallDenseMap<std::pair<Value *, Attribute::AttrKind>, in dropRedundantKnowledge()
392 bool HasSameKindAttr = Arg->hasAttribute(RK.AttrKind); in dropRedundantKnowledge()
[all …]

123456