Home
last modified time | relevance | path

Searched refs:getAttributes (Results 1 – 25 of 168) sorted by relevance

1234567

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DGlobalVariable.h228 AttributeSet getAttributes() const {
249 return getAttributes().hasAttribute("bss-section") ||
250 getAttributes().hasAttribute("data-section") || in classof()
251 getAttributes().hasAttribute("relro-section") || in classof()
252 getAttributes().hasAttribute("rodata-section"); in classof()
222 AttributeSet getAttributes() const { getAttributes() function
H A DInstrTypes.h1542 AttributeList getAttributes() const { return Attrs; }
1696 return getAttributes().getAttributeAtIndex(i, Kind);
1701 return getAttributes().getAttributeAtIndex(i, Kind);
1706 Attribute Attr = getAttributes().getFnAttr(Kind);
1714 Attribute A = getAttributes().getFnAttr(Kind);
1723 Attribute A = getAttributes().getParamAttr(ArgNo, Kind);
1732 Attribute A = getAttributes().getParamAttr(ArgNo, Kind);
1833 return F->getAttributes().getRetAlignment();
1851 return F->getAttributes().getParamByRefType(ArgNo);
1860 return F->getAttributes().getParamByValType(ArgNo);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAttributes.cpp1453 CurBuilder.merge(AttrBuilder(C, List.getAttributes(I - 1))); in get()
1463 AttributeSet Attrs = getAttributes(Index); in addAttributeAtIndex()
1513 AttrBuilder Merged(C, getAttributes(Index)); in addAttributesAtIndex()
1541 AttributeSet Attrs = getAttributes(Index); in removeAttributeAtIndex()
1551 AttributeSet Attrs = getAttributes(Index); in removeAttributeAtIndex()
1560 AttributeSet Attrs = getAttributes(Index); in removeAttributesAtIndex()
1621 return getAttributes(ArgNo + FirstArgIndex); in getParamAttrs()
1625 return getAttributes(ReturnIndex); in getRetAttrs()
1629 return getAttributes(FunctionIndex); in getFnAttrs()
1634 return getAttributes(Index).hasAttribute(Kind); in hasAttributeAtIndex()
[all …]
H A DTypeFinder.cpp59 incorporateAttributes(FI.getAttributes()); in run()
84 incorporateAttributes(CB->getAttributes()); in run()
H A DInstruction.cpp468 AttributeSet RetAttrs = CB->getAttributes().getRetAttrs(); in hasPoisonGeneratingReturnAttributes()
496 AttributeList AL = CB->getAttributes(); in dropUBImplyingAttrsAndUnknownMetadata()
814 CI->getAttributes() == cast<CallInst>(I2)->getAttributes() && in hasSameSpecialState()
818 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() && in hasSameSpecialState()
822 CI->getAttributes() == cast<CallBrInst>(I2)->getAttributes() && in hasSameSpecialState()
H A DFunction.cpp173 AttributeList Attrs = getParent()->getAttributes(); in hasPassPointeeByValueCopyAttr()
182 AttributeList Attrs = getParent()->getAttributes(); in hasPointeeInMemoryValueAttr()
211 getParent()->getAttributes().getParamAttrs(getArgNo()); in getPassPointeeByValueCopySize()
219 getParent()->getAttributes().getParamAttrs(getArgNo()); in getPointeeInMemoryValueType()
317 AttributeList Attrs = getParent()->getAttributes(); in onlyReadsMemory()
323 AttributeList AL = getParent()->getAttributes(); in addAttrs()
341 AttributeList AL = getParent()->getAttributes(); in removeAttrs()
508 setAttributes(Intrinsic::getAttributes(getContext(), IntID)); in Function()
842 setAttributes(Src->getAttributes()); in copyAttributesFrom()
856 return getAttributes().getMemoryEffects(); in getMemoryEffects()
H A DPseudoProbe.cpp61 Probe.Attr = II->getAttributes()->getZExtValue(); in extractProbe()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Arm64ECCallLowering.cpp511 getThunkType(F->getFunctionType(), F->getAttributes(), in buildEntryThunk()
579 auto SRetAttr = F->getAttributes().getParamAttr(0, Attribute::StructRet); in buildEntryThunk()
580 auto InRegAttr = F->getAttributes().getParamAttr(0, Attribute::InReg); in buildEntryThunk()
615 getThunkType(F->getFunctionType(), F->getAttributes(), in buildGuestExitThunk()
652 Function *Thunk = buildExitThunk(F->getFunctionType(), F->getAttributes()); in buildGuestExitThunk()
672 auto SRetAttr = F->getAttributes().getParamAttr(0, Attribute::StructRet); in buildGuestExitThunk()
673 auto InRegAttr = F->getAttributes().getParamAttr(0, Attribute::InReg); in buildGuestExitThunk()
689 getThunkType(F->getFunctionType(), F->getAttributes(), in buildPatchableThunk()
711 buildExitThunk(F->getFunctionType(), F->getAttributes()); in buildPatchableThunk()
731 auto SRetAttr = F->getAttributes().getParamAttr(0, Attribute::StructRet); in buildPatchableThunk()
[all …]
H A DAArch64RegisterInfo.cpp96 MF->getFunction().getAttributes().hasAttrSomewhere( in getCalleeSavedRegs()
130 MF->getFunction().getAttributes().hasAttrSomewhere( in getCalleeSavedRegs()
189 MF->getFunction().getAttributes().hasAttrSomewhere( in getDarwinCalleeSavedRegs()
267 MF.getFunction().getAttributes().hasAttrSomewhere(Attribute::SwiftError)) in getDarwinCallPreservedMask()
313 MF.getFunction().getAttributes().hasAttrSomewhere(Attribute::SwiftError)) in getCallPreservedMask()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.cpp351 F.getAttributes().getAttributes(Index).getStackAlignment()) in getAlign()
369 I.getAttributes().getAttributes(Index).getStackAlignment()) in getAlign()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGLoopInfo.h104 const LoopAttributes &getAttributes() const { return Attrs; } in getAttributes() function
231 return hasInfo() ? getInfo().getAttributes().IsParallel : false; in getCurLoopParallel()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILIntrinsicExpansion.cpp119 Exp2Call->setAttributes(Orig->getAttributes()); in expandExpIntrinsic()
190 Log2Call->setAttributes(Orig->getAttributes()); in expandLogIntrinsic()
214 Exp2Call->setAttributes(Orig->getAttributes()); in expandPowIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp434 CB.getAttributes().hasParamAttr(I, Attribute::ByVal)) { in isLegalToPromote()
440 CB.getAttributes().hasParamAttr(I, Attribute::InAlloca)) { in isLegalToPromote()
514 const AttributeList &CallerPAL = CB.getAttributes(); in promoteCall()
H A DLowerInvoke.cpp58 NewCall->setAttributes(II->getAttributes()); in runImpl()
H A DFunctionComparator.cpp122 AttributeSet LAS = L.getAttributes(i); in cmpAttrs()
123 AttributeSet RAS = R.getAttributes(i); in cmpAttrs()
702 if (int Res = cmpAttrs(CBL->getAttributes(), CBR->getAttributes())) in cmpOperations()
947 if (int Res = cmpAttrs(FnL->getAttributes(), FnR->getAttributes())) in compareSignature()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp192 AttributeList PAL = CB->getAttributes(); in deleteDeadVarargs()
496 if (F.getAttributes().hasAttrSomewhere(Attribute::InAlloca) || in surveyFunction()
497 F.getAttributes().hasAttrSomewhere(Attribute::Preallocated)) { in surveyFunction()
750 const AttributeList &PAL = F->getAttributes(); in removeDeadStuffFromFunction()
888 const AttributeList &CallPAL = CB.getAttributes(); in removeDeadStuffFromFunction()
H A DArgumentPromotion.cpp128 AttributeList PAL = F->getAttributes(); in doPromotion()
187 if (auto AllocSize = NF->getAttributes().getFnAttrs().getAllocSizeArgs()) { in doPromotion()
213 const AttributeList &CallPAL = CB.getAttributes(); in doPromotion()
778 if (F->getAttributes().hasAttrSomewhere(Attribute::InAlloca)) in promoteArguments()
H A DSCCP.cpp201 F.setAttributes(UpdateAttrs(F.getAttributes())); in runIPSCCP()
207 CB->setAttributes(UpdateAttrs(CB->getAttributes())); in runIPSCCP()
H A DFunctionAttrs.cpp175 if (F.getAttributes().hasAttrSomewhere(Attribute::InAlloca) || in checkFunctionMemoryAccess()
176 F.getAttributes().hasAttrSomewhere(Attribute::Preallocated)) in checkFunctionMemoryAccess()
767 if (F->getAttributes().hasAttrSomewhere(Attribute::Returned)) in addArgumentReturnedAttrs()
1242 if (F->getAttributes().hasRetAttr(Attribute::NonNull)) in addNonNullAttrs()
1276 if (F->getAttributes().hasRetAttr(Attribute::NonNull) || in addNonNullAttrs()
1295 AttributeList Attrs = F->getAttributes(); in addNoUndefAttrs()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp68 for (ParsedAttr &AL : DS.getAttributes()) { in ParseTypeName()
74 Attrs->takeOneFrom(DS.getAttributes(), AL); in ParseTypeName()
1980 for (ParsedAttr &AL : DS.getAttributes()) { in stripTypeAttributesOffDeclSpec()
1988 DS.getAttributes().remove(AL); in stripTypeAttributesOffDeclSpec()
3700 ParseAlignmentSpecifier(DS.getAttributes()); in ParseDeclarationSpecifiers()
4212 ParseAttributes(PAKM_GNU | PAKM_Declspec, DS.getAttributes(), LateAttrs); in ParseDeclarationSpecifiers()
4220 DS.getAttributes().addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, in ParseDeclarationSpecifiers()
4241 ParseMicrosoftTypeAttributes(DS.getAttributes()); in ParseDeclarationSpecifiers()
4245 ParseWebAssemblyFuncrefTypeAttribute(DS.getAttributes()); in ParseDeclarationSpecifiers()
4250 ParseBorlandTypeAttributes(DS.getAttributes()); in ParseDeclarationSpecifiers()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCGenScalarMASSEntries.cpp101 MASSEntryStr, Func.getFunctionType(), Func.getAttributes()); in createScalarMASSCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/
H A DAArch64SMEAttributes.cpp44 *this = SMEAttrs(CB.getAttributes()); in SMEAttrs()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp75 if (F.getAttributes().hasParamAttr(Idx, Attribute::SExt)) { in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp137 NewF->setAttributes(F.getAttributes()); in runOnModule()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DHardwareLoops.cpp506 if (BeginBB->getParent()->getAttributes().hasFnAttr(Attribute::StrictFP)) in InsertIterationSetup()
540 if (ExitBranch->getParent()->getParent()->getAttributes().hasFnAttr( in InsertLoopDec()
565 if (ExitBranch->getParent()->getParent()->getAttributes().hasFnAttr( in InsertLoopRegDec()

1234567