| /trueos/contrib/llvm/include/llvm/IR/ |
| HD | Attributes.h | 202 class AttributeSet { 221 static AttributeSet get(LLVMContext &C, 223 static AttributeSet get(LLVMContext &C, 227 static AttributeSet getImpl(LLVMContext &C, 232 explicit AttributeSet(AttributeSetImpl *LI) : pImpl(LI) {} in AttributeSet() function 234 AttributeSet() : pImpl(0) {} in AttributeSet() function 241 static AttributeSet get(LLVMContext &C, ArrayRef<AttributeSet> Attrs); 242 static AttributeSet get(LLVMContext &C, unsigned Index, 244 static AttributeSet get(LLVMContext &C, unsigned Index, AttrBuilder &B); 248 AttributeSet addAttribute(LLVMContext &C, unsigned Index, [all …]
|
| HD | Function.h | 88 AttributeSet AttributeSets; ///< Parameter attributes 170 AttributeSet getAttributes() const { return AttributeSets; } 173 void setAttributes(AttributeSet attrs) { AttributeSets = attrs; } 178 AttributeSet::FunctionIndex, N)); 184 getContext(), AttributeSet::FunctionIndex, N)); 191 AttributeSet::FunctionIndex, Kind)); 196 AttributeSet::FunctionIndex, Kind, Value)); 201 return AttributeSets.hasAttribute(AttributeSet::FunctionIndex, Kind); 204 return AttributeSets.hasAttribute(AttributeSet::FunctionIndex, Kind); 209 return AttributeSets.getAttribute(AttributeSet::FunctionIndex, Kind); [all …]
|
| HD | Argument.h | 91 void addAttr(AttributeSet AS); 94 void removeAttr(AttributeSet AS);
|
| HD | Intrinsics.h | 29 class AttributeSet; variable 61 AttributeSet getAttributes(LLVMContext &C, ID id);
|
| /trueos/contrib/llvm/lib/Transforms/Utils/ |
| HD | BuildLibCalls.cpp | 41 AttributeSet AS[2]; in EmitStrLen() 42 AS[0] = AttributeSet::get(M->getContext(), 1, Attribute::NoCapture); in EmitStrLen() 44 AS[1] = AttributeSet::get(M->getContext(), AttributeSet::FunctionIndex, in EmitStrLen() 49 AttributeSet::get(M->getContext(), in EmitStrLen() 70 AttributeSet AS[2]; in EmitStrNLen() 71 AS[0] = AttributeSet::get(M->getContext(), 1, Attribute::NoCapture); in EmitStrNLen() 73 AS[1] = AttributeSet::get(M->getContext(), AttributeSet::FunctionIndex, in EmitStrNLen() 78 AttributeSet::get(M->getContext(), in EmitStrNLen() 101 AttributeSet AS = in EmitStrChr() 102 AttributeSet::get(M->getContext(), AttributeSet::FunctionIndex, in EmitStrChr() [all …]
|
| /trueos/contrib/llvm/lib/IR/ |
| HD | Attributes.cpp | 519 AttributeSet(const_cast<AttributeSetImpl *>(this)).dump(); in dump() 526 AttributeSet 527 AttributeSet::getImpl(LLVMContext &C, in getImpl() 548 return AttributeSet(PA); in getImpl() 551 AttributeSet AttributeSet::get(LLVMContext &C, in get() 555 return AttributeSet(); in get() 585 AttributeSet AttributeSet::get(LLVMContext &C, in get() 590 return AttributeSet(); in get() 595 AttributeSet AttributeSet::get(LLVMContext &C, unsigned Index, AttrBuilder &B) { in get() 597 return AttributeSet(); in get() [all …]
|
| HD | AsmWriter.cpp | 327 DenseMap<AttributeSet, unsigned> asMap; 340 int getAttributeGroupSlot(AttributeSet AS); 362 typedef DenseMap<AttributeSet, unsigned>::iterator as_iterator; 383 void CreateAttributeSetSlot(AttributeSet AS); 489 AttributeSet FnAttrs = I->getAttributes().getFnAttributes(); in processModule() 490 if (FnAttrs.hasAttributes(AttributeSet::FunctionIndex)) in processModule() 534 AttributeSet Attrs = CI->getAttributes().getFnAttributes(); in processFunction() 535 if (Attrs.hasAttributes(AttributeSet::FunctionIndex)) in processFunction() 539 AttributeSet Attrs = II->getAttributes().getFnAttributes(); in processFunction() 540 if (Attrs.hasAttributes(AttributeSet::FunctionIndex)) in processFunction() [all …]
|
| HD | Function.cpp | 144 void Argument::addAttr(AttributeSet AS) { in addAttr() 149 AttributeSet::get(Parent->getContext(), in addAttr() 154 void Argument::removeAttr(AttributeSet AS) { in removeAttr() 159 AttributeSet::get(Parent->getContext(), in removeAttr() 285 AttributeSet PAL = getAttributes(); in addAttribute() 290 void Function::addAttributes(unsigned i, AttributeSet attrs) { in addAttributes() 291 AttributeSet PAL = getAttributes(); in addAttributes() 296 void Function::removeAttributes(unsigned i, AttributeSet attrs) { in removeAttributes() 297 AttributeSet PAL = getAttributes(); in removeAttributes()
|
| HD | AsmWriter.h | 92 void writeParamOperand(const Value *Operand, AttributeSet Attrs,unsigned Idx); 103 void printArgument(const Argument *FA, AttributeSet Attrs, unsigned Idx);
|
| /trueos/contrib/llvm/lib/Bitcode/Writer/ |
| HD | ValueEnumerator.h | 32 class AttributeSet; variable 55 typedef DenseMap<AttributeSet, unsigned> AttributeGroupMapType; 57 std::vector<AttributeSet> AttributeGroups; 59 typedef DenseMap<AttributeSet, unsigned> AttributeMapType; 61 std::vector<AttributeSet> Attribute; 105 unsigned getAttributeID(AttributeSet PAL) const { in getAttributeID() 112 unsigned getAttributeGroupID(AttributeSet PAL) const { in getAttributeGroupID() 135 const std::vector<AttributeSet> &getAttributes() const { in getAttributes() 138 const std::vector<AttributeSet> &getAttributeGroups() const { in getAttributeGroups() 163 void EnumerateAttributes(AttributeSet PAL);
|
| /trueos/contrib/llvm/lib/Transforms/IPO/ |
| HD | DeadArgumentElimination.cpp | 278 AttributeSet PAL = CS.getAttributes(); in DeleteDeadVarargs() 280 SmallVector<AttributeSet, 8> AttributesVec; in DeleteDeadVarargs() 283 if (PAL.hasAttributes(AttributeSet::FunctionIndex)) in DeleteDeadVarargs() 284 AttributesVec.push_back(AttributeSet::get(Fn.getContext(), in DeleteDeadVarargs() 286 PAL = AttributeSet::get(Fn.getContext(), AttributesVec); in DeleteDeadVarargs() 736 SmallVector<AttributeSet, 8> AttributesVec; in RemoveDeadStuffFromFunction() 737 const AttributeSet &PAL = F->getAttributes(); in RemoveDeadStuffFromFunction() 759 push_back(AttributeSet::get(F->getContext(), Params.size(), B)); in RemoveDeadStuffFromFunction() 843 AttributeSet RAttrs = PAL.getRetAttributes(); in RemoveDeadStuffFromFunction() 851 AttributeSet::get(NRetTy->getContext(), AttributeSet::ReturnIndex, in RemoveDeadStuffFromFunction() [all …]
|
| HD | Inliner.cpp | 84 AttributeSet OldSSPAttr = AttributeSet::get(Caller->getContext(), in AdjustCallerSSPLevel() 85 AttributeSet::FunctionIndex, in AdjustCallerSSPLevel() 87 AttributeSet CallerAttr = Caller->getAttributes(), in AdjustCallerSSPLevel() 90 if (CalleeAttr.hasAttribute(AttributeSet::FunctionIndex, in AdjustCallerSSPLevel() 92 Caller->removeAttributes(AttributeSet::FunctionIndex, OldSSPAttr); in AdjustCallerSSPLevel() 94 } else if (CalleeAttr.hasAttribute(AttributeSet::FunctionIndex, in AdjustCallerSSPLevel() 96 !CallerAttr.hasAttribute(AttributeSet::FunctionIndex, in AdjustCallerSSPLevel() 98 Caller->removeAttributes(AttributeSet::FunctionIndex, OldSSPAttr); in AdjustCallerSSPLevel() 100 } else if (CalleeAttr.hasAttribute(AttributeSet::FunctionIndex, in AdjustCallerSSPLevel() 102 !CallerAttr.hasAttribute(AttributeSet::FunctionIndex, in AdjustCallerSSPLevel() [all …]
|
| HD | ArgumentPromotion.cpp | 514 SmallVector<AttributeSet, 8> AttributesVec; in DoPromotion() 515 const AttributeSet &PAL = F->getAttributes(); in DoPromotion() 518 if (PAL.hasAttributes(AttributeSet::ReturnIndex)) in DoPromotion() 519 AttributesVec.push_back(AttributeSet::get(F->getContext(), in DoPromotion() 536 AttributeSet attrs = PAL.getParamAttributes(ArgIndex); in DoPromotion() 540 push_back(AttributeSet::get(F->getContext(), Params.size(), B)); in DoPromotion() 593 if (PAL.hasAttributes(AttributeSet::FunctionIndex)) in DoPromotion() 594 AttributesVec.push_back(AttributeSet::get(FTy->getContext(), in DoPromotion() 612 NF->setAttributes(AttributeSet::get(F->getContext(), AttributesVec)); in DoPromotion() 637 const AttributeSet &CallPAL = CS.getAttributes(); in DoPromotion() [all …]
|
| HD | PruneEH.cpp | 148 const AttributeSet &PAL = F->getAttributes().getFnAttributes(); in runOnSCC() 149 const AttributeSet &NPAL = AttributeSet::get( in runOnSCC() 150 F->getContext(), AttributeSet::FunctionIndex, NewAttributes); in runOnSCC() 154 F->addAttributes(AttributeSet::FunctionIndex, NPAL); in runOnSCC()
|
| /trueos/contrib/llvm/lib/Transforms/ObjCARC/ |
| HD | ARCRuntimeEntryPoints.h | 133 AttributeSet Attr = in getVoidRetI8XEntryPoint() 134 AttributeSet().addAttribute(C, AttributeSet::FunctionIndex, in getVoidRetI8XEntryPoint() 151 AttributeSet Attr = AttributeSet(); 154 Attr = Attr.addAttribute(C, AttributeSet::FunctionIndex, 170 AttributeSet Attr = in getI8XRetI8XXI8XEntryPoint() 171 AttributeSet().addAttribute(C, AttributeSet::FunctionIndex, in getI8XRetI8XXI8XEntryPoint()
|
| /trueos/contrib/llvm/lib/Transforms/InstCombine/ |
| HD | InstCombineCalls.cpp | 987 const AttributeSet &CallerPAL = CS.getAttributes(); in transformConstExprCastCall() 1013 AttrBuilder RAttrs(CallerPAL, AttributeSet::ReturnIndex); in transformConstExprCastCall() 1016 typeIncompatible(NewRetTy, AttributeSet::ReturnIndex), in transformConstExprCastCall() 1017 AttributeSet::ReturnIndex)) in transformConstExprCastCall() 1100 AttributeSet PAttrs = CallerPAL.getSlotAttributes(i - 1); in transformConstExprCastCall() 1110 SmallVector<AttributeSet, 8> attrVec; in transformConstExprCastCall() 1114 AttrBuilder RAttrs(CallerPAL, AttributeSet::ReturnIndex); in transformConstExprCastCall() 1120 typeIncompatible(NewRetTy, AttributeSet::ReturnIndex), in transformConstExprCastCall() 1121 AttributeSet::ReturnIndex); in transformConstExprCastCall() 1125 attrVec.push_back(AttributeSet::get(Caller->getContext(), in transformConstExprCastCall() [all …]
|
| /trueos/contrib/llvm/lib/Target/Mips/ |
| HD | Mips16HardFloat.cpp | 385 AttributeSet A; in fixupFPReturnAndCall() 394 A = A.addAttribute(C, AttributeSet::FunctionIndex, in fixupFPReturnAndCall() 396 A = A.addAttribute(C, AttributeSet::FunctionIndex, in fixupFPReturnAndCall() 398 A = A.addAttribute(C, AttributeSet::FunctionIndex, in fixupFPReturnAndCall() 459 AttributeSet A; in removeUseSoftFloat() 461 A = A.addAttribute(F.getContext(), AttributeSet::FunctionIndex, in removeUseSoftFloat() 463 F.removeAttributes(AttributeSet::FunctionIndex, A); in removeUseSoftFloat() 467 F.addAttributes(AttributeSet::FunctionIndex, A); in removeUseSoftFloat()
|
| HD | MipsSubtarget.cpp | 132 AttributeSet FnAttrs = MF->getFunction()->getAttributes(); in resetSubtarget() 133 ChangeToMips16 = FnAttrs.hasAttribute(AttributeSet::FunctionIndex, in resetSubtarget() 135 ChangeToNoMips16 = FnAttrs.hasAttribute(AttributeSet::FunctionIndex, in resetSubtarget()
|
| /trueos/contrib/llvm/lib/Target/R600/ |
| HD | AMDGPUMachineFunction.cpp | 16 AttributeSet Set = MF.getFunction()->getAttributes(); in AMDGPUMachineFunction() 17 Attribute A = Set.getAttribute(AttributeSet::FunctionIndex, in AMDGPUMachineFunction()
|
| /trueos/contrib/llvm/lib/Target/PowerPC/ |
| HD | PPCSubtarget.cpp | 55 AttributeSet FnAttrs = MF->getFunction()->getAttributes(); in resetSubtargetFeatures() 56 Attribute CPUAttr = FnAttrs.getAttribute(AttributeSet::FunctionIndex, in resetSubtargetFeatures() 58 Attribute FSAttr = FnAttrs.getAttribute(AttributeSet::FunctionIndex, in resetSubtargetFeatures()
|
| /trueos/contrib/llvm/lib/Target/X86/ |
| HD | X86PadShortFunction.cpp | 94 const AttributeSet &FnAttrs = MF.getFunction()->getAttributes(); in runOnMachineFunction() 95 if (FnAttrs.hasAttribute(AttributeSet::FunctionIndex, in runOnMachineFunction() 97 FnAttrs.hasAttribute(AttributeSet::FunctionIndex, in runOnMachineFunction()
|
| /trueos/contrib/llvm/lib/AsmParser/ |
| HD | LLParser.cpp | 85 AttributeSet AS = Fn->getAttributes(); in ValidateEndOfModule() 86 AttrBuilder FnAttrs(AS.getFnAttributes(), AttributeSet::FunctionIndex); in ValidateEndOfModule() 87 AS = AS.removeAttributes(Context, AttributeSet::FunctionIndex, in ValidateEndOfModule() 99 AS = AS.addAttributes(Context, AttributeSet::FunctionIndex, in ValidateEndOfModule() 100 AttributeSet::get(Context, in ValidateEndOfModule() 101 AttributeSet::FunctionIndex, in ValidateEndOfModule() 105 AttributeSet AS = CI->getAttributes(); in ValidateEndOfModule() 106 AttrBuilder FnAttrs(AS.getFnAttributes(), AttributeSet::FunctionIndex); in ValidateEndOfModule() 107 AS = AS.removeAttributes(Context, AttributeSet::FunctionIndex, in ValidateEndOfModule() 110 AS = AS.addAttributes(Context, AttributeSet::FunctionIndex, in ValidateEndOfModule() [all …]
|
| /trueos/contrib/llvm/lib/Bitcode/Reader/ |
| HD | BitcodeReader.h | 151 std::vector<AttributeSet> MAttributes; 154 std::map<unsigned, AttributeSet> MAttributeGroups; 277 AttributeSet getAttributes(unsigned i) const { in getAttributes() 280 return AttributeSet(); in getAttributes()
|
| /trueos/contrib/llvm/lib/Target/ARM/ |
| HD | ARMSubtarget.cpp | 141 AttributeSet FnAttrs = MF->getFunction()->getAttributes(); in resetSubtargetFeatures() 142 Attribute CPUAttr = FnAttrs.getAttribute(AttributeSet::FunctionIndex, in resetSubtargetFeatures() 144 Attribute FSAttr = FnAttrs.getAttribute(AttributeSet::FunctionIndex, in resetSubtargetFeatures()
|
| /trueos/contrib/llvm/lib/Transforms/Instrumentation/ |
| HD | DataFlowSanitizer.cpp | 179 AttributeSet ReadOnlyNoneAttrs; 428 AttributeSet::ReturnIndex, in buildWrapperFunction() 430 AttributeSet::ReturnIndex)); in buildWrapperFunction() 500 F->addAttribute(AttributeSet::FunctionIndex, Attribute::ReadNone); in runOnModule() 501 F->addAttribute(AttributeSet::ReturnIndex, Attribute::ZExt); in runOnModule() 508 F->addAttribute(AttributeSet::ReturnIndex, Attribute::ZExt); in runOnModule() 560 ReadOnlyNoneAttrs = AttributeSet::get(*Ctx, AttributeSet::FunctionIndex, B); in runOnModule() 581 AttributeSet::ReturnIndex, in runOnModule() 583 AttributeSet::ReturnIndex)); in runOnModule() 627 NewF->removeAttributes(AttributeSet::FunctionIndex, ReadOnlyNoneAttrs); in runOnModule() [all …]
|