reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/IR/AttributesTest.cpp
   98   AL = AL.addParamAttributes(C, 0, B_align_readonly);
   98   AL = AL.addParamAttributes(C, 0, B_align_readonly);
   99   AL = AL.addAttributes(C, 0, B_stackalign_optnone);
   99   AL = AL.addAttributes(C, 0, B_stackalign_optnone);
  100   EXPECT_TRUE(AL.hasAttributes(0));
  101   EXPECT_TRUE(AL.hasAttribute(0, Attribute::StackAlignment));
  102   EXPECT_TRUE(AL.hasAttribute(0, Attribute::OptimizeNone));
  103   EXPECT_TRUE(AL.getStackAlignment(0) == 32);
  104   EXPECT_TRUE(AL.hasParamAttrs(0));
  105   EXPECT_TRUE(AL.hasParamAttr(0, Attribute::Alignment));
  106   EXPECT_TRUE(AL.hasParamAttr(0, Attribute::ReadOnly));
  107   EXPECT_TRUE(AL.getParamAlignment(0) == 8);
  109   AL = AL.removeParamAttribute(C, 0, Attribute::Alignment);
  109   AL = AL.removeParamAttribute(C, 0, Attribute::Alignment);
  110   EXPECT_FALSE(AL.hasParamAttr(0, Attribute::Alignment));
  111   EXPECT_TRUE(AL.hasParamAttr(0, Attribute::ReadOnly));
  112   EXPECT_TRUE(AL.hasAttribute(0, Attribute::StackAlignment));
  113   EXPECT_TRUE(AL.hasAttribute(0, Attribute::OptimizeNone));
  114   EXPECT_TRUE(AL.getStackAlignment(0) == 32);
  116   AL = AL.removeAttribute(C, 0, Attribute::StackAlignment);
  116   AL = AL.removeAttribute(C, 0, Attribute::StackAlignment);
  117   EXPECT_FALSE(AL.hasParamAttr(0, Attribute::Alignment));
  118   EXPECT_TRUE(AL.hasParamAttr(0, Attribute::ReadOnly));
  119   EXPECT_FALSE(AL.hasAttribute(0, Attribute::StackAlignment));
  120   EXPECT_TRUE(AL.hasAttribute(0, Attribute::OptimizeNone));