| /minix3/external/bsd/llvm/dist/llvm/unittests/IR/ |
| H A D | AttributesTest.cpp | 24 AttributeSet ASs[] = { in TEST() 25 AttributeSet::get(C, 1, Attribute::ZExt), in TEST() 26 AttributeSet::get(C, 2, Attribute::SExt) in TEST() 29 AttributeSet SetA = AttributeSet::get(C, ASs); in TEST() 30 AttributeSet SetB = AttributeSet::get(C, ASs); in TEST() 37 AttributeSet ASs[] = { in TEST() 38 AttributeSet::get(C, 2, Attribute::ZExt), in TEST() 39 AttributeSet::get(C, 1, Attribute::SExt) in TEST() 42 AttributeSet SetA = AttributeSet::get(C, ASs); in TEST() 43 AttributeSet SetB = SetA.removeAttributes(C, 1, ASs[1]); in TEST()
|
| H A D | VerifierTest.cpp | 52 AttributeSet AS = F->getAttributes(); in TEST() 53 F->setAttributes(AS.addAttribute(C, AttributeSet::ReturnIndex, in TEST()
|
| H A D | LegacyPassManagerTest.cpp | 440 AttributeSet func_test1_PAL; in makeLLVMModule() 448 AttributeSet func_test2_PAL; in makeLLVMModule() 456 AttributeSet func_test3_PAL; in makeLLVMModule() 464 AttributeSet func_test4_PAL; in makeLLVMModule() 484 int32_3->setTailCall(false);AttributeSet int32_3_PAL; in makeLLVMModule() 499 int32_6->setTailCall(false);AttributeSet int32_6_PAL; in makeLLVMModule() 514 int32_9->setTailCall(false);AttributeSet int32_9_PAL; in makeLLVMModule()
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/ |
| H A D | Attributes.h | 212 class AttributeSet { 231 static AttributeSet get(LLVMContext &C, 233 static AttributeSet get(LLVMContext &C, 237 static AttributeSet getImpl(LLVMContext &C, 242 explicit AttributeSet(AttributeSetImpl *LI) : pImpl(LI) {} in AttributeSet() function 244 AttributeSet() : pImpl(nullptr) {} in AttributeSet() function 251 static AttributeSet get(LLVMContext &C, ArrayRef<AttributeSet> Attrs); 252 static AttributeSet get(LLVMContext &C, unsigned Index, 254 static AttributeSet get(LLVMContext &C, unsigned Index, const AttrBuilder &B); 258 AttributeSet addAttribute(LLVMContext &C, unsigned Index, [all …]
|
| H A D | Function.h | 88 AttributeSet AttributeSets; ///< Parameter attributes 176 AttributeSet getAttributes() const { return AttributeSets; } 179 void setAttributes(AttributeSet attrs) { AttributeSets = attrs; } 184 AttributeSet::FunctionIndex, N)); 190 getContext(), AttributeSet::FunctionIndex, N)); 197 AttributeSet::FunctionIndex, Kind)); 202 AttributeSet::FunctionIndex, Kind, Value)); 207 return AttributeSets.hasAttribute(AttributeSet::FunctionIndex, Kind); 210 return AttributeSets.hasAttribute(AttributeSet::FunctionIndex, Kind); 215 return AttributeSets.getAttribute(AttributeSet::FunctionIndex, Kind); [all …]
|
| H A D | Argument.h | 117 void addAttr(AttributeSet AS); 120 void removeAttr(AttributeSet AS);
|
| H A D | Intrinsics.h | 29 class AttributeSet; variable 56 AttributeSet getAttributes(LLVMContext &C, ID id);
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/ |
| H A D | BuildLibCalls.cpp | 42 AttributeSet AS[2]; in EmitStrLen() 43 AS[0] = AttributeSet::get(M->getContext(), 1, Attribute::NoCapture); in EmitStrLen() 45 AS[1] = AttributeSet::get(M->getContext(), AttributeSet::FunctionIndex, AVs); 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, AVs); in EmitStrNLen() 77 AttributeSet::get(M->getContext(), in EmitStrNLen() 100 AttributeSet AS = in EmitStrChr() 101 AttributeSet::get(M->getContext(), AttributeSet::FunctionIndex, AVs); in EmitStrChr() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/IR/ |
| H A D | Attributes.cpp | 568 AttributeSet(const_cast<AttributeSetImpl *>(this)).dump(); in dump() 575 AttributeSet 576 AttributeSet::getImpl(LLVMContext &C, in getImpl() 597 return AttributeSet(PA); in getImpl() 600 AttributeSet AttributeSet::get(LLVMContext &C, in get() 604 return AttributeSet(); in get() 634 AttributeSet AttributeSet::get(LLVMContext &C, in get() 639 return AttributeSet(); in get() 644 AttributeSet AttributeSet::get(LLVMContext &C, unsigned Index, in get() 647 return AttributeSet(); in get() [all …]
|
| H A D | AsmWriter.cpp | 542 DenseMap<AttributeSet, unsigned> asMap; 555 int getAttributeGroupSlot(AttributeSet AS); 579 typedef DenseMap<AttributeSet, unsigned>::iterator as_iterator; 600 void CreateAttributeSetSlot(AttributeSet AS); 697 AttributeSet FnAttrs = I->getAttributes().getFnAttributes(); in processModule() 698 if (FnAttrs.hasAttributes(AttributeSet::FunctionIndex)) in processModule() 743 AttributeSet Attrs = CI->getAttributes().getFnAttributes(); in processFunction() 744 if (Attrs.hasAttributes(AttributeSet::FunctionIndex)) in processFunction() 748 AttributeSet Attrs = II->getAttributes().getFnAttributes(); in processFunction() 749 if (Attrs.hasAttributes(AttributeSet::FunctionIndex)) in processFunction() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/bindings/go/llvm/ |
| H A D | IRBindings.cpp | 27 const AttributeSet PAL = Func->getAttributes(); in LLVMAddFunctionAttr2() 29 const AttributeSet PALnew = in LLVMAddFunctionAttr2() 30 PAL.addAttributes(Func->getContext(), AttributeSet::FunctionIndex, in LLVMAddFunctionAttr2() 31 AttributeSet::get(Func->getContext(), in LLVMAddFunctionAttr2() 32 AttributeSet::FunctionIndex, B)); in LLVMAddFunctionAttr2() 38 const AttributeSet PAL = Func->getAttributes(); in LLVMGetFunctionAttr2() 39 return PAL.Raw(AttributeSet::FunctionIndex); in LLVMGetFunctionAttr2() 44 const AttributeSet PAL = Func->getAttributes(); in LLVMRemoveFunctionAttr2() 46 const AttributeSet PALnew = in LLVMRemoveFunctionAttr2() 47 PAL.removeAttributes(Func->getContext(), AttributeSet::FunctionIndex, in LLVMRemoveFunctionAttr2() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Bitcode/Writer/ |
| H A D | ValueEnumerator.h | 37 class AttributeSet; variable 70 typedef DenseMap<AttributeSet, unsigned> AttributeGroupMapType; 72 std::vector<AttributeSet> AttributeGroups; 74 typedef DenseMap<AttributeSet, unsigned> AttributeMapType; 76 std::vector<AttributeSet> Attribute; 126 unsigned getAttributeID(AttributeSet PAL) const { in getAttributeID() 133 unsigned getAttributeGroupID(AttributeSet PAL) const { in getAttributeGroupID() 156 const std::vector<AttributeSet> &getAttributes() const { in getAttributes() 159 const std::vector<AttributeSet> &getAttributeGroups() const { in getAttributeGroups() 187 void EnumerateAttributes(AttributeSet PAL);
|
| /minix3/external/bsd/llvm/dist/llvm/docs/ |
| H A D | HowToUseAttributes.rst | 41 ``AttributeSet`` 44 The ``AttributeSet`` class replaces the old ``AttributeList`` class. The 45 ``AttributeSet`` stores a collection of Attribute objects for each kind of 48 are at index ``AttributeSet::FunctionIndex``; the return type's attributes are 49 at index ``AttributeSet::ReturnIndex``; and the function's parameters' 51 Most methods on the ``AttributeSet`` class take an index parameter. 53 An ``AttributeSet`` is also a uniqued and immutable object. You create an 54 ``AttributeSet`` through the ``AttributeSet::get`` methods. You can add and 55 remove attributes, which result in the creation of a new ``AttributeSet``. 57 An ``AttributeSet`` object is designed to be passed around by value. [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/ObjCARC/ |
| H A D | 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()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/IPO/ |
| H A D | DeadArgumentElimination.cpp | 249 AttributeSet PAL = CS.getAttributes(); in DeleteDeadVarargs() 251 SmallVector<AttributeSet, 8> AttributesVec; in DeleteDeadVarargs() 254 if (PAL.hasAttributes(AttributeSet::FunctionIndex)) in DeleteDeadVarargs() 255 AttributesVec.push_back(AttributeSet::get(Fn.getContext(), in DeleteDeadVarargs() 257 PAL = AttributeSet::get(Fn.getContext(), AttributesVec); in DeleteDeadVarargs() 715 SmallVector<AttributeSet, 8> AttributesVec; in RemoveDeadStuffFromFunction() 716 const AttributeSet &PAL = F->getAttributes(); in RemoveDeadStuffFromFunction() 738 push_back(AttributeSet::get(F->getContext(), Params.size(), B)); in RemoveDeadStuffFromFunction() 822 AttributeSet RAttrs = PAL.getRetAttributes(); in RemoveDeadStuffFromFunction() 830 AttributeSet::get(NRetTy->getContext(), AttributeSet::ReturnIndex, in RemoveDeadStuffFromFunction() [all …]
|
| H A D | Inliner.cpp | 97 AttributeSet OldSSPAttr = AttributeSet::get(Caller->getContext(), in AdjustCallerSSPLevel() 98 AttributeSet::FunctionIndex, in AdjustCallerSSPLevel() 100 AttributeSet CallerAttr = Caller->getAttributes(), in AdjustCallerSSPLevel() 103 if (CalleeAttr.hasAttribute(AttributeSet::FunctionIndex, in AdjustCallerSSPLevel() 105 Caller->removeAttributes(AttributeSet::FunctionIndex, OldSSPAttr); in AdjustCallerSSPLevel() 107 } else if (CalleeAttr.hasAttribute(AttributeSet::FunctionIndex, in AdjustCallerSSPLevel() 109 !CallerAttr.hasAttribute(AttributeSet::FunctionIndex, in AdjustCallerSSPLevel() 111 Caller->removeAttributes(AttributeSet::FunctionIndex, OldSSPAttr); in AdjustCallerSSPLevel() 113 } else if (CalleeAttr.hasAttribute(AttributeSet::FunctionIndex, in AdjustCallerSSPLevel() 115 !CallerAttr.hasAttribute(AttributeSet::FunctionIndex, in AdjustCallerSSPLevel() [all …]
|
| H A D | ArgumentPromotion.cpp | 611 SmallVector<AttributeSet, 8> AttributesVec; in DoPromotion() 612 const AttributeSet &PAL = F->getAttributes(); in DoPromotion() 615 if (PAL.hasAttributes(AttributeSet::ReturnIndex)) in DoPromotion() 616 AttributesVec.push_back(AttributeSet::get(F->getContext(), in DoPromotion() 633 AttributeSet attrs = PAL.getParamAttributes(ArgIndex); in DoPromotion() 637 push_back(AttributeSet::get(F->getContext(), Params.size(), B)); in DoPromotion() 689 if (PAL.hasAttributes(AttributeSet::FunctionIndex)) in DoPromotion() 690 AttributesVec.push_back(AttributeSet::get(FTy->getContext(), in DoPromotion() 718 NF->setAttributes(AttributeSet::get(F->getContext(), AttributesVec)); in DoPromotion() 743 const AttributeSet &CallPAL = CS.getAttributes(); in DoPromotion() [all …]
|
| H A D | PruneEH.cpp | 149 const AttributeSet &PAL = F->getAttributes().getFnAttributes(); in runOnSCC() 150 const AttributeSet &NPAL = AttributeSet::get( in runOnSCC() 151 F->getContext(), AttributeSet::FunctionIndex, NewAttributes); in runOnSCC() 155 F->addAttributes(AttributeSet::FunctionIndex, NPAL); in runOnSCC()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/Mips/ |
| H A D | MipsTargetMachine.cpp | 94 AttributeSet FnAttrs = F.getAttributes(); in getSubtargetImpl() 96 FnAttrs.getAttribute(AttributeSet::FunctionIndex, "target-cpu"); in getSubtargetImpl() 98 FnAttrs.getAttribute(AttributeSet::FunctionIndex, "target-features"); in getSubtargetImpl() 107 !FnAttrs.getAttribute(AttributeSet::FunctionIndex, "mips16") in getSubtargetImpl() 110 !FnAttrs.getAttribute(AttributeSet::FunctionIndex, "nomips16") in getSubtargetImpl() 119 FnAttrs.getAttribute(AttributeSet::FunctionIndex, "use-soft-float"); in getSubtargetImpl()
|
| H A D | Mips16HardFloat.cpp | 391 AttributeSet A; in fixupFPReturnAndCall() 400 A = A.addAttribute(C, AttributeSet::FunctionIndex, in fixupFPReturnAndCall() 402 A = A.addAttribute(C, AttributeSet::FunctionIndex, in fixupFPReturnAndCall() 404 A = A.addAttribute(C, AttributeSet::FunctionIndex, in fixupFPReturnAndCall() 481 AttributeSet A; in removeUseSoftFloat() 483 A = A.addAttribute(F.getContext(), AttributeSet::FunctionIndex, in removeUseSoftFloat() 485 F.removeAttributes(AttributeSet::FunctionIndex, A); in removeUseSoftFloat() 489 F.addAttributes(AttributeSet::FunctionIndex, A); in removeUseSoftFloat()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/R600/ |
| H A D | AMDGPUMachineFunction.cpp | 18 AttributeSet Set = MF.getFunction()->getAttributes(); in AMDGPUMachineFunction() 19 Attribute A = Set.getAttribute(AttributeSet::FunctionIndex, in AMDGPUMachineFunction()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/X86/ |
| H A D | X86TargetMachine.cpp | 77 AttributeSet FnAttrs = F.getAttributes(); in getSubtargetImpl() 79 FnAttrs.getAttribute(AttributeSet::FunctionIndex, "target-cpu"); in getSubtargetImpl() 81 FnAttrs.getAttribute(AttributeSet::FunctionIndex, "target-features"); in getSubtargetImpl() 96 FnAttrs.getAttribute(AttributeSet::FunctionIndex, "use-soft-float"); in getSubtargetImpl()
|
| H A D | X86PadShortFunction.cpp | 96 const AttributeSet &FnAttrs = MF.getFunction()->getAttributes(); in runOnMachineFunction() 97 if (FnAttrs.hasAttribute(AttributeSet::FunctionIndex, in runOnMachineFunction() 99 FnAttrs.hasAttribute(AttributeSet::FunctionIndex, in runOnMachineFunction()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCalls.cpp | 1127 II->addAttribute(AttributeSet::ReturnIndex, Attribute::NonNull); in visitCallInst() 1384 const AttributeSet &CallerPAL = CS.getAttributes(); in transformConstExprCastCall() 1411 AttrBuilder RAttrs(CallerPAL, AttributeSet::ReturnIndex); in transformConstExprCastCall() 1414 typeIncompatible(NewRetTy, AttributeSet::ReturnIndex), in transformConstExprCastCall() 1415 AttributeSet::ReturnIndex)) in transformConstExprCastCall() 1509 AttributeSet PAttrs = CallerPAL.getSlotAttributes(i - 1); in transformConstExprCastCall() 1519 SmallVector<AttributeSet, 8> attrVec; in transformConstExprCastCall() 1523 AttrBuilder RAttrs(CallerPAL, AttributeSet::ReturnIndex); in transformConstExprCastCall() 1529 typeIncompatible(NewRetTy, AttributeSet::ReturnIndex), in transformConstExprCastCall() 1530 AttributeSet::ReturnIndex); in transformConstExprCastCall() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
| H A D | DataFlowSanitizer.cpp | 249 AttributeSet ReadOnlyNoneAttrs; 531 AttributeSet::ReturnIndex, in buildWrapperFunction() 533 AttributeSet::ReturnIndex)); in buildWrapperFunction() 538 AttributeSet::FunctionIndex, in buildWrapperFunction() 539 AttributeSet().addAttribute(*Ctx, AttributeSet::FunctionIndex, in buildWrapperFunction() 616 F->addAttribute(AttributeSet::FunctionIndex, Attribute::NoUnwind); in runOnModule() 617 F->addAttribute(AttributeSet::FunctionIndex, Attribute::ReadNone); in runOnModule() 618 F->addAttribute(AttributeSet::ReturnIndex, Attribute::ZExt); in runOnModule() 624 F->addAttribute(AttributeSet::FunctionIndex, Attribute::NoUnwind); in runOnModule() 625 F->addAttribute(AttributeSet::FunctionIndex, Attribute::ReadNone); in runOnModule() [all …]
|