Home
last modified time | relevance | path

Searched refs:AttributeWithIndex (Results 1 – 13 of 13) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp43 AttributeWithIndex AWI[2]; in EmitStrLen()
44 AWI[0] = AttributeWithIndex::get(1, Attribute::NoCapture); in EmitStrLen()
45 AWI[1] = AttributeWithIndex::get(~0u, Attribute::ReadOnly | in EmitStrLen()
69 AttributeWithIndex AWI[2]; in EmitStrNLen()
70 AWI[0] = AttributeWithIndex::get(1, Attribute::NoCapture); in EmitStrNLen()
71 AWI[1] = AttributeWithIndex::get(~0u, Attribute::ReadOnly | in EmitStrNLen()
96 AttributeWithIndex AWI = in EmitStrChr()
97 AttributeWithIndex::get(~0u, Attribute::ReadOnly | Attribute::NoUnwind); in EmitStrChr()
118 AttributeWithIndex AWI[3]; in EmitStrNCmp()
119 AWI[0] = AttributeWithIndex::get(1, Attribute::NoCapture); in EmitStrNCmp()
[all …]
/external/llvm/lib/VMCore/
DAttributes.cpp132 SmallVector<AttributeWithIndex, 4> Attrs;
134 AttributeListImpl(ArrayRef<AttributeWithIndex> attrs) in AttributeListImpl()
155 static void Profile(FoldingSetNodeID &ID, ArrayRef<AttributeWithIndex> Attrs){ in Profile()
170 AttrListPtr AttrListPtr::get(ArrayRef<AttributeWithIndex> Attrs) { in get()
240 const AttributeWithIndex &AttrListPtr::getSlot(unsigned Slot) const { in getSlot()
252 const SmallVector<AttributeWithIndex, 4> &Attrs = AttrList->Attrs; in getAttributes()
264 const SmallVector<AttributeWithIndex, 4> &Attrs = AttrList->Attrs; in hasAttrSomewhere()
287 SmallVector<AttributeWithIndex, 8> NewAttrList; in addAttr()
289 NewAttrList.push_back(AttributeWithIndex::get(Idx, Attrs)); in addAttr()
291 const SmallVector<AttributeWithIndex, 4> &OldAttrList = AttrList->Attrs; in addAttr()
[all …]
DVerifier.cpp576 const AttributeWithIndex &Attr = Attrs.getSlot(i); in VerifyFunctionAttrs()
/external/llvm/include/llvm/
DAttributes.h276 struct AttributeWithIndex { struct
282 static AttributeWithIndex get(unsigned Idx, Attributes Attrs) { in get() argument
283 AttributeWithIndex P; in get()
313 static AttrListPtr get(ArrayRef<AttributeWithIndex> Attrs);
397 const AttributeWithIndex &getSlot(unsigned Slot) const;
/external/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp236 SmallVector<AttributeWithIndex, 8> AttributesVec; in DeleteDeadVarargs()
240 AttributesVec.push_back(AttributeWithIndex::get(~0, FnAttrs)); in DeleteDeadVarargs()
653 SmallVector<AttributeWithIndex, 8> AttributesVec; in RemoveDeadStuffFromFunction()
726 AttributesVec.push_back(AttributeWithIndex::get(0, RAttrs)); in RemoveDeadStuffFromFunction()
744 AttributesVec.push_back(AttributeWithIndex::get(Params.size(), Attrs)); in RemoveDeadStuffFromFunction()
753 AttributesVec.push_back(AttributeWithIndex::get(~0, FnAttrs)); in RemoveDeadStuffFromFunction()
791 AttributesVec.push_back(AttributeWithIndex::get(0, RAttrs)); in RemoveDeadStuffFromFunction()
804 AttributesVec.push_back(AttributeWithIndex::get(Args.size(), Attrs)); in RemoveDeadStuffFromFunction()
811 AttributesVec.push_back(AttributeWithIndex::get(Args.size(), Attrs)); in RemoveDeadStuffFromFunction()
815 AttributesVec.push_back(AttributeWithIndex::get(~0, FnAttrs)); in RemoveDeadStuffFromFunction()
DArgumentPromotion.cpp516 SmallVector<AttributeWithIndex, 8> AttributesVec; in DoPromotion()
521 AttributesVec.push_back(AttributeWithIndex::get(0, attrs)); in DoPromotion()
538 AttributesVec.push_back(AttributeWithIndex::get(Params.size(), attrs)); in DoPromotion()
591 AttributesVec.push_back(AttributeWithIndex::get(~0, attrs)); in DoPromotion()
645 AttributesVec.push_back(AttributeWithIndex::get(0, attrs)); in DoPromotion()
657 AttributesVec.push_back(AttributeWithIndex::get(Args.size(), Attrs)); in DoPromotion()
721 AttributesVec.push_back(AttributeWithIndex::get(Args.size(), Attrs)); in DoPromotion()
726 AttributesVec.push_back(AttributeWithIndex::get(~0, attrs)); in DoPromotion()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp1113 SmallVector<AttributeWithIndex, 8> attrVec; in transformConstExprCastCall()
1125 attrVec.push_back(AttributeWithIndex::get(0, RAttrs)); in transformConstExprCastCall()
1140 attrVec.push_back(AttributeWithIndex::get(i + 1, PAttrs)); in transformConstExprCastCall()
1168 attrVec.push_back(AttributeWithIndex::get(i + 1, PAttrs)); in transformConstExprCastCall()
1174 attrVec.push_back(AttributeWithIndex::get(~0, FnAttrs)); in transformConstExprCastCall()
1274 SmallVector<AttributeWithIndex, 8> NewAttrs; in transformCallThroughTrampoline()
1282 NewAttrs.push_back(AttributeWithIndex::get(0, Attr)); in transformCallThroughTrampoline()
1294 NewAttrs.push_back(AttributeWithIndex::get(NestIdx, NestAttr)); in transformCallThroughTrampoline()
1304 (AttributeWithIndex::get(Idx + (Idx >= NestIdx), Attr)); in transformCallThroughTrampoline()
1312 NewAttrs.push_back(AttributeWithIndex::get(~0, Attr)); in transformCallThroughTrampoline()
/external/clang/lib/CodeGen/
DCGCall.h29 struct AttributeWithIndex;
45 typedef SmallVector<llvm::AttributeWithIndex, 8> AttributeListType;
DCGCall.cpp990 PAL.push_back(llvm::AttributeWithIndex::get(Index, SRETAttrs)); in ConstructAttributeList()
1004 PAL.push_back(llvm::AttributeWithIndex::get(0, RetAttrs)); in ConstructAttributeList()
1036 PAL.push_back(llvm::AttributeWithIndex::get(Index + I, Attrs)); in ConstructAttributeList()
1068 PAL.push_back(llvm::AttributeWithIndex::get(Index, Attrs)); in ConstructAttributeList()
1072 PAL.push_back(llvm::AttributeWithIndex::get(~0, FuncAttrs)); in ConstructAttributeList()
DCodeGenModule.cpp1762 llvm::SmallVector<llvm::AttributeWithIndex, 8> AttrVec; in ReplaceUsesOfNonProtoTypeWithRealFunction()
1770 AttrVec.push_back(llvm::AttributeWithIndex::get(0, RAttrs)); in ReplaceUsesOfNonProtoTypeWithRealFunction()
1787 AttrVec.push_back(llvm::AttributeWithIndex::get(ArgNo + 1, PAttrs)); in ReplaceUsesOfNonProtoTypeWithRealFunction()
1793 AttrVec.push_back(llvm::AttributeWithIndex::get(~0, FnAttrs)); in ReplaceUsesOfNonProtoTypeWithRealFunction()
/external/llvm/lib/AsmParser/
DLLParser.cpp2727 SmallVector<AttributeWithIndex, 8> Attrs; in ParseFunctionHeader()
2730 Attrs.push_back(AttributeWithIndex::get(0, RetAttrs)); in ParseFunctionHeader()
2735 Attrs.push_back(AttributeWithIndex::get(i+1, ArgList[i].Attrs)); in ParseFunctionHeader()
2739 Attrs.push_back(AttributeWithIndex::get(~0, FuncAttrs)); in ParseFunctionHeader()
3255 SmallVector<AttributeWithIndex, 8> Attrs; in ParseInvoke()
3257 Attrs.push_back(AttributeWithIndex::get(0, RetAttrs)); in ParseInvoke()
3278 Attrs.push_back(AttributeWithIndex::get(i+1, ArgList[i].Attrs)); in ParseInvoke()
3285 Attrs.push_back(AttributeWithIndex::get(~0, FnAttrs)); in ParseInvoke()
3651 SmallVector<AttributeWithIndex, 8> Attrs; in ParseCall()
3653 Attrs.push_back(AttributeWithIndex::get(0, RetAttrs)); in ParseCall()
[all …]
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp443 SmallVector<AttributeWithIndex, 8> Attrs; in ParseAttributeBlock()
484 Attrs.push_back(AttributeWithIndex::get(Record[i], in ParseAttributeBlock()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp178 const AttributeWithIndex &PAWI = A.getSlot(i); in WriteAttributeTable()