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

Declarations

include/llvm/IR/Attributes.h
  550   bool hasAttribute(unsigned Index, Attribute::AttrKind Kind) const;

References

include/llvm/IR/Attributes.h
  560     return hasAttribute(ArgNo + FirstArgIndex, Kind);
include/llvm/IR/Function.h
  399     return getAttributes().hasAttribute(i, Kind);
  613     return AttributeSets.hasAttribute(AttributeList::ReturnIndex,
include/llvm/IR/InstrTypes.h
 1613     return Attrs.hasAttribute(AttributeList::ReturnIndex, Attribute::NoAlias);
 2114     if (Attrs.hasAttribute(AttributeList::FunctionIndex, Kind))
include/llvm/IR/Statepoint.h
  194            (F ? F->getAttributes().hasAttribute(i, A) : false);
include/llvm/Transforms/IPO/Attributor.h
  446     if (AttrList.hasAttribute(getAttrIdx(), AK))
lib/AsmParser/LLParser.cpp
 5432   if (PAL.hasAttribute(1, Attribute::StructRet) && !RetType->isVoidTy())
lib/CodeGen/GlobalISel/CallLowering.cpp
   79   if (Attrs.hasAttribute(OpIdx, Attribute::ZExt))
   81   if (Attrs.hasAttribute(OpIdx, Attribute::SExt))
   83   if (Attrs.hasAttribute(OpIdx, Attribute::InReg))
   85   if (Attrs.hasAttribute(OpIdx, Attribute::StructRet))
   87   if (Attrs.hasAttribute(OpIdx, Attribute::SwiftSelf))
   89   if (Attrs.hasAttribute(OpIdx, Attribute::SwiftError))
   91   if (Attrs.hasAttribute(OpIdx, Attribute::ByVal))
   93   if (Attrs.hasAttribute(OpIdx, Attribute::InAlloca))
  111   if (Attrs.hasAttribute(OpIdx, Attribute::Nest))
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  346   if (CallerAttrs.hasAttribute(AttributeList::ReturnIndex, Attribute::ZExt) ||
  347       CallerAttrs.hasAttribute(AttributeList::ReturnIndex, Attribute::SExt))
lib/CodeGen/MachinePipeliner.cpp
  202   if (mf.getFunction().getAttributes().hasAttribute(
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1836       if (F->getAttributes().hasAttribute(AttributeList::ReturnIndex,
 1839       else if (F->getAttributes().hasAttribute(AttributeList::ReturnIndex,
 1844       bool RetInReg = F->getAttributes().hasAttribute(
lib/CodeGen/SelectionDAG/TargetLowering.cpp
   66   if (CallerAttrs.hasAttribute(AttributeList::ReturnIndex, Attribute::ZExt) ||
   67       CallerAttrs.hasAttribute(AttributeList::ReturnIndex, Attribute::SExt))
lib/CodeGen/TargetLoweringBase.cpp
 1476     if (attr.hasAttribute(AttributeList::ReturnIndex, Attribute::SExt))
 1478     else if (attr.hasAttribute(AttributeList::ReturnIndex, Attribute::ZExt))
 1498     if (attr.hasAttribute(AttributeList::ReturnIndex, Attribute::InReg))
 1502     if (attr.hasAttribute(AttributeList::ReturnIndex, Attribute::SExt))
 1504     else if (attr.hasAttribute(AttributeList::ReturnIndex, Attribute::ZExt))
lib/IR/Attributes.cpp
 1134   if (hasAttribute(Index, Kind)) return *this;
 1206   if (!hasAttribute(Index, Kind)) return *this;
 1324   return hasAttribute(ArgNo + FirstArgIndex, Kind);
 1332     if (hasAttribute(I, Attr)) {
lib/IR/Instructions.cpp
  323   if (Attrs.hasAttribute(AttributeList::ReturnIndex, Kind))
  328     return F->getAttributes().hasAttribute(AttributeList::ReturnIndex, Kind);
  345     return F->getAttributes().hasAttribute(AttributeList::FunctionIndex, Kind);
lib/IR/Verifier.cpp
 2856   if (Attrs.hasAttribute(AttributeList::FunctionIndex, Attribute::Speculatable)) {
lib/Linker/IRMover.cpp
  639     if (Attrs.hasAttribute(i, Attribute::ByVal)) {
lib/Target/AArch64/AArch64CallLowering.cpp
  302           if (F.getAttributes().hasAttribute(AttributeList::ReturnIndex,
  305           else if (F.getAttributes().hasAttribute(AttributeList::ReturnIndex,
lib/Target/AArch64/AArch64ISelLowering.cpp
12424       Attr.hasAttribute(AttributeList::FunctionIndex, Attribute::MinSize);
lib/Target/AVR/AVRISelLowering.cpp
 1413   if (MF.getFunction().getAttributes().hasAttribute(
lib/Target/Hexagon/HexagonOptimizeSZextends.cpp
   74     if (F.getAttributes().hasAttribute(Idx, Attribute::SExt)) {
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
 1338   if (FuncInfo.Fn->getAttributes().hasAttribute(0, Attribute::SExt))
 1340   else if (FuncInfo.Fn->getAttributes().hasAttribute(0, Attribute::ZExt))
lib/Target/X86/X86ISelLowering.cpp
24458           if (Attrs.hasAttribute(Idx, Attribute::InReg)) {
46160       Attr.hasAttribute(AttributeList::FunctionIndex, Attribute::MinSize);
lib/Target/X86/X86IndirectBranchTracking.cpp
   94   if (Attrs.hasAttribute(AttributeList::FunctionIndex, Attribute::ReturnsTwice))
lib/Transforms/IPO/Attributor.cpp
  259     if (Attrs.hasAttribute(AttrIdx, Kind))
  275     if (Attrs.hasAttribute(AttrIdx, Kind))
lib/Transforms/IPO/FunctionAttrs.cpp
 1046     if (F->getAttributes().hasAttribute(AttributeList::ReturnIndex,
 1081       if (F->getAttributes().hasAttribute(AttributeList::ReturnIndex,
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 2392   if (AH.getAttributes().hasAttribute(Index, Attribute::NoAlias))
lib/Transforms/Utils/ValueMapper.cpp
  903       if (Attrs.hasAttribute(i, Attribute::ByVal)) {
tools/clang/lib/CodeGen/CGCall.cpp
 4340     CannotThrow = Attrs.hasAttribute(llvm::AttributeList::FunctionIndex,
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
  243       if (call_attribs.hasAttribute(I, llvm::Attribute::ByVal)) {
unittests/IR/AttributesTest.cpp
   66   EXPECT_TRUE(AL.hasAttribute(AttributeList::ReturnIndex, Attribute::SExt));
  101   EXPECT_TRUE(AL.hasAttribute(0, Attribute::StackAlignment));
  102   EXPECT_TRUE(AL.hasAttribute(0, Attribute::OptimizeNone));
  112   EXPECT_TRUE(AL.hasAttribute(0, Attribute::StackAlignment));
  113   EXPECT_TRUE(AL.hasAttribute(0, Attribute::OptimizeNone));
  119   EXPECT_FALSE(AL.hasAttribute(0, Attribute::StackAlignment));
  120   EXPECT_TRUE(AL.hasAttribute(0, Attribute::OptimizeNone));
  129   EXPECT_TRUE(AL2.hasAttribute(0, Attribute::StackAlignment));
  130   EXPECT_TRUE(AL2.hasAttribute(0, Attribute::OptimizeNone));
  136   EXPECT_FALSE(AL2.hasAttribute(0, Attribute::StackAlignment));
  137   EXPECT_TRUE(AL2.hasAttribute(0, Attribute::OptimizeNone));