• Home
  • Raw
  • Download

Lines Matching refs:Attribute

20   Attribute AttrA = Attribute::get(C, Attribute::AlwaysInline);  in TEST()
21 Attribute AttrB = Attribute::get(C, Attribute::AlwaysInline); in TEST()
24 AttributeList ASs[] = {AttributeList::get(C, 1, Attribute::ZExt), in TEST()
25 AttributeList::get(C, 2, Attribute::SExt)}; in TEST()
35 Attribute Align4 = Attribute::get(C, Attribute::Alignment, 4); in TEST()
36 Attribute Align5 = Attribute::get(C, Attribute::Alignment, 5); in TEST()
37 Attribute Deref4 = Attribute::get(C, Attribute::Dereferenceable, 4); in TEST()
38 Attribute Deref5 = Attribute::get(C, Attribute::Dereferenceable, 5); in TEST()
44 Attribute ByVal = Attribute::get(C, Attribute::ByVal, Type::getInt32Ty(C)); in TEST()
45 EXPECT_FALSE(ByVal < Attribute::get(C, Attribute::ZExt)); in TEST()
49 AttributeList ASs[] = {AttributeList::get(C, 2, Attribute::ZExt), in TEST()
50 AttributeList::get(C, 1, Attribute::SExt)}; in TEST()
61 B.addAttribute(Attribute::NoReturn); in TEST()
63 EXPECT_TRUE(AL.hasFnAttribute(Attribute::NoReturn)); in TEST()
65 B.addAttribute(Attribute::SExt); in TEST()
67 EXPECT_TRUE(AL.hasAttribute(AttributeList::ReturnIndex, Attribute::SExt)); in TEST()
68 EXPECT_TRUE(AL.hasFnAttribute(Attribute::NoReturn)); in TEST()
74 Attribute AlignAttr = Attribute::getWithAlignment(C, Align(8)); in TEST()
75 Attribute StackAlignAttr = Attribute::getWithStackAlignment(C, Align(32)); in TEST()
78 B_align_readonly.addAttribute(Attribute::ReadOnly); in TEST()
83 B_stackalign_optnone.addAttribute(Attribute::OptimizeNone); in TEST()
89 EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly)); in TEST()
90 AS = AS.removeAttribute(C, Attribute::Alignment); 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()
106 EXPECT_TRUE(AL.hasParamAttr(0, Attribute::Alignment)); in TEST()
107 EXPECT_TRUE(AL.hasParamAttr(0, Attribute::ReadOnly)); in TEST()
110 AL = AL.removeParamAttribute(C, 0, Attribute::Alignment); in TEST()
111 EXPECT_FALSE(AL.hasParamAttr(0, Attribute::Alignment)); in TEST()
112 EXPECT_TRUE(AL.hasParamAttr(0, Attribute::ReadOnly)); in TEST()
113 EXPECT_TRUE(AL.hasAttribute(0, Attribute::StackAlignment)); in TEST()
114 EXPECT_TRUE(AL.hasAttribute(0, Attribute::OptimizeNone)); in TEST()
117 AL = AL.removeAttribute(C, 0, Attribute::StackAlignment); in TEST()
118 EXPECT_FALSE(AL.hasParamAttr(0, Attribute::Alignment)); in TEST()
119 EXPECT_TRUE(AL.hasParamAttr(0, Attribute::ReadOnly)); in TEST()
120 EXPECT_FALSE(AL.hasAttribute(0, Attribute::StackAlignment)); in TEST()
121 EXPECT_TRUE(AL.hasAttribute(0, Attribute::OptimizeNone)); in TEST()
128 EXPECT_FALSE(AL2.hasParamAttr(0, Attribute::Alignment)); in TEST()
129 EXPECT_TRUE(AL2.hasParamAttr(0, Attribute::ReadOnly)); in TEST()
130 EXPECT_TRUE(AL2.hasAttribute(0, Attribute::StackAlignment)); in TEST()
131 EXPECT_TRUE(AL2.hasAttribute(0, Attribute::OptimizeNone)); in TEST()
135 EXPECT_FALSE(AL2.hasParamAttr(0, Attribute::Alignment)); in TEST()
136 EXPECT_TRUE(AL2.hasParamAttr(0, Attribute::ReadOnly)); in TEST()
137 EXPECT_FALSE(AL2.hasAttribute(0, Attribute::StackAlignment)); in TEST()
138 EXPECT_TRUE(AL2.hasAttribute(0, Attribute::OptimizeNone)); in TEST()
145 Attribute::getWithAlignment(C, Align(8))); in TEST()
147 Attribute::getWithAlignment(C, Align(32))); in TEST()
152 B.addAttribute(Attribute::NonNull); in TEST()
157 EXPECT_TRUE(AL.hasParamAttribute(0, Attribute::NonNull)); in TEST()
169 …std::pair<unsigned, Attribute> Attrs[] = { { AttributeList::ReturnIndex, Attribute::get(C, Attribu… in TEST()
170 … { AttributeList::FunctionIndex, Attribute::get(C, Attribute::ReadOnly) } }; in TEST()
180 Attribute A = Attribute::getWithByValType(C, Ty); in TEST()
183 A = Attribute::getWithByValType(C, nullptr); in TEST()
186 A = Attribute::getWithByValType(C, Type::getInt32Ty(C)); in TEST()