Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp35 AttributeWithIndex AWI[2]; in EmitStrLen()
36 AWI[0] = AttributeWithIndex::get(1, Attribute::NoCapture); in EmitStrLen()
37 AWI[1] = AttributeWithIndex::get(~0u, Attribute::ReadOnly | in EmitStrLen()
58 AttributeWithIndex AWI = in EmitStrChr()
59 AttributeWithIndex::get(~0u, Attribute::ReadOnly | Attribute::NoUnwind); in EmitStrChr()
76 AttributeWithIndex AWI[3]; in EmitStrNCmp()
77 AWI[0] = AttributeWithIndex::get(1, Attribute::NoCapture); in EmitStrNCmp()
78 AWI[1] = AttributeWithIndex::get(2, Attribute::NoCapture); in EmitStrNCmp()
79 AWI[2] = AttributeWithIndex::get(~0u, Attribute::ReadOnly | in EmitStrNCmp()
102 AttributeWithIndex AWI[2]; in EmitStrCpy()
[all …]
/external/llvm/lib/VMCore/
DAttributes.cpp130 SmallVector<AttributeWithIndex, 4> Attrs;
132 AttributeListImpl(const AttributeWithIndex *Attr, unsigned NumAttrs) in AttributeListImpl()
153 static void Profile(FoldingSetNodeID &ID, const AttributeWithIndex *Attr, in Profile()
167 AttrListPtr AttrListPtr::get(const AttributeWithIndex *Attrs, unsigned NumAttrs) { in get()
237 const AttributeWithIndex &AttrListPtr::getSlot(unsigned Slot) const { in getSlot()
249 const SmallVector<AttributeWithIndex, 4> &Attrs = AttrList->Attrs; in getAttributes()
261 const SmallVector<AttributeWithIndex, 4> &Attrs = AttrList->Attrs; in hasAttrSomewhere()
284 SmallVector<AttributeWithIndex, 8> NewAttrList; in addAttr()
286 NewAttrList.push_back(AttributeWithIndex::get(Idx, Attrs)); in addAttr()
288 const SmallVector<AttributeWithIndex, 4> &OldAttrList = AttrList->Attrs; in addAttr()
[all …]
DModule.cpp203 AttrListPtr AttributeList = AttrListPtr::get((AttributeWithIndex *)0, 0); in getOrInsertFunction()
246 AttrListPtr::get((AttributeWithIndex *)0, 0)); in getOrInsertFunction()
DVerifier.cpp566 const AttributeWithIndex &Attr = Attrs.getSlot(i); in VerifyFunctionAttrs()
/external/llvm/include/llvm/
DAttributes.h165 struct AttributeWithIndex { struct
171 static AttributeWithIndex get(unsigned Idx, Attributes Attrs) { in get() argument
172 AttributeWithIndex P; in get()
202 static AttrListPtr get(const AttributeWithIndex *Attr, unsigned NumAttrs);
294 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()
792 AttributesVec.push_back(AttributeWithIndex::get(0, RAttrs)); in RemoveDeadStuffFromFunction()
805 AttributesVec.push_back(AttributeWithIndex::get(Args.size(), Attrs)); in RemoveDeadStuffFromFunction()
812 AttributesVec.push_back(AttributeWithIndex::get(Args.size(), Attrs)); in RemoveDeadStuffFromFunction()
816 AttributesVec.push_back(AttributeWithIndex::get(~0, FnAttrs)); in RemoveDeadStuffFromFunction()
DArgumentPromotion.cpp517 SmallVector<AttributeWithIndex, 8> AttributesVec; in DoPromotion()
522 AttributesVec.push_back(AttributeWithIndex::get(0, attrs)); in DoPromotion()
539 AttributesVec.push_back(AttributeWithIndex::get(Params.size(), attrs)); in DoPromotion()
594 AttributesVec.push_back(AttributeWithIndex::get(~0, attrs)); in DoPromotion()
649 AttributesVec.push_back(AttributeWithIndex::get(0, attrs)); in DoPromotion()
661 AttributesVec.push_back(AttributeWithIndex::get(Args.size(), Attrs)); in DoPromotion()
726 AttributesVec.push_back(AttributeWithIndex::get(Args.size(), Attrs)); in DoPromotion()
731 AttributesVec.push_back(AttributeWithIndex::get(~0, attrs)); in DoPromotion()
/external/clang/lib/CodeGen/
DCGCall.h29 struct AttributeWithIndex;
45 typedef llvm::SmallVector<llvm::AttributeWithIndex, 8> AttributeListType;
DCGCall.cpp757 PAL.push_back(llvm::AttributeWithIndex::get(Index, in ConstructAttributeList()
770 PAL.push_back(llvm::AttributeWithIndex::get(0, RetAttrs)); in ConstructAttributeList()
838 PAL.push_back(llvm::AttributeWithIndex::get(Index, Attributes)); in ConstructAttributeList()
842 PAL.push_back(llvm::AttributeWithIndex::get(~0, FuncAttrs)); in ConstructAttributeList()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp1048 SmallVector<AttributeWithIndex, 8> attrVec; in transformConstExprCastCall()
1060 attrVec.push_back(AttributeWithIndex::get(0, RAttrs)); in transformConstExprCastCall()
1075 attrVec.push_back(AttributeWithIndex::get(i + 1, PAttrs)); in transformConstExprCastCall()
1103 attrVec.push_back(AttributeWithIndex::get(i + 1, PAttrs)); in transformConstExprCastCall()
1109 attrVec.push_back(AttributeWithIndex::get(~0, FnAttrs)); in transformConstExprCastCall()
1207 SmallVector<AttributeWithIndex, 8> NewAttrs; in transformCallThroughTrampoline()
1215 NewAttrs.push_back(AttributeWithIndex::get(0, Attr)); in transformCallThroughTrampoline()
1227 NewAttrs.push_back(AttributeWithIndex::get(NestIdx, NestAttr)); in transformCallThroughTrampoline()
1237 (AttributeWithIndex::get(Idx + (Idx >= NestIdx), Attr)); in transformCallThroughTrampoline()
1245 NewAttrs.push_back(AttributeWithIndex::get(~0, Attr)); in transformCallThroughTrampoline()
/external/llvm/lib/AsmParser/
DLLParser.cpp2655 SmallVector<AttributeWithIndex, 8> Attrs; in ParseFunctionHeader()
2658 Attrs.push_back(AttributeWithIndex::get(0, RetAttrs)); in ParseFunctionHeader()
2663 Attrs.push_back(AttributeWithIndex::get(i+1, ArgList[i].Attrs)); in ParseFunctionHeader()
2667 Attrs.push_back(AttributeWithIndex::get(~0, FuncAttrs)); in ParseFunctionHeader()
3186 SmallVector<AttributeWithIndex, 8> Attrs; in ParseInvoke()
3188 Attrs.push_back(AttributeWithIndex::get(0, RetAttrs)); in ParseInvoke()
3209 Attrs.push_back(AttributeWithIndex::get(i+1, ArgList[i].Attrs)); in ParseInvoke()
3216 Attrs.push_back(AttributeWithIndex::get(~0, FnAttrs)); in ParseInvoke()
3522 SmallVector<AttributeWithIndex, 8> Attrs; in ParseCall()
3524 Attrs.push_back(AttributeWithIndex::get(0, RetAttrs)); in ParseCall()
[all …]
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp390 SmallVector<AttributeWithIndex, 8> Attrs; in ParseAttributeBlock()
467 Attrs.push_back(AttributeWithIndex::get(0, RetAttribute)); in ParseAttributeBlock()
470 Attrs.push_back(AttributeWithIndex::get(~0U, FnAttribute)); in ParseAttributeBlock()
472 Attrs.push_back(AttributeWithIndex::get(Record[i], Record[i+1])); in ParseAttributeBlock()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp131 const AttributeWithIndex &PAWI = A.getSlot(i); in WriteAttributeTable()