Home
last modified time | relevance | path

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

1234567

/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceAttributes.cpp68 const AttributeSet &AS = GV.getAttributes(); in visitGlobalVariable()
76 visitAttributeList(F.getAttributes(), FunctionsToRefine[&F]); in visitFunction()
80 visitAttributeList(I.getAttributes(), CallsToRefine[&I]); in visitCallBase()
90 visitAttributeSet(AL.getAttributes(AttributesToPreserve.first), in visitAttributeList()
118 visitAttributeSet(GV.getAttributes()); in visitGlobalVariable()
124 visitAttributeList(F.getAttributes()); in visitFunction()
127 void visitCallBase(CallBase &I) { visitAttributeList(I.getAttributes()); } in visitCallBase()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DGlobalVariable.h222 AttributeSet getAttributes() const { in getAttributes() function
243 return getAttributes().hasAttribute("bss-section") || in hasImplicitSection()
244 getAttributes().hasAttribute("data-section") || in hasImplicitSection()
245 getAttributes().hasAttribute("relro-section") || in hasImplicitSection()
246 getAttributes().hasAttribute("rodata-section"); in hasImplicitSection()
H A DInstrTypes.h1474 AttributeList getAttributes() const { return Attrs; }
1606 return getAttributes().getAttributeAtIndex(i, Kind);
1611 return getAttributes().getAttributeAtIndex(i, Kind);
1616 Attribute Attr = getAttributes().getFnAttr(Kind);
1624 Attribute A = getAttributes().getFnAttr(Kind);
1633 return getAttributes().getParamAttr(ArgNo, Kind);
1639 return getAttributes().getParamAttr(ArgNo, Kind);
1737 return F->getAttributes().getRetAlignment();
1755 return F->getAttributes().getParamByValType(ArgNo);
1773 return F->getAttributes().getParamInAllocaType(ArgNo);
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DAttributes.cpp1224 AttributeSet Attrs = getAttributes(Index); in addAttributeAtIndex()
1266 AttrBuilder Merged(C, getAttributes(Index)); in addAttributesAtIndex()
1323 AttributeSet Attrs = getAttributes(Index); in removeAttributesAtIndex()
1381 return getAttributes(ArgNo + FirstArgIndex); in getParamAttrs()
1385 return getAttributes(ReturnIndex); in getRetAttrs()
1389 return getAttributes(FunctionIndex); in getFnAttrs()
1394 return getAttributes(Index).hasAttribute(Kind); in hasAttributeAtIndex()
1398 return getAttributes(Index).hasAttribute(Kind); in hasAttributeAtIndex()
1402 return getAttributes(Index).hasAttributes(); in hasAttributesAtIndex()
1420 return getAttributes(Index).getAttribute(Kind); in getAttributeAtIndex()
[all …]
H A DInstruction.cpp185 AttributeList AL = CB->getAttributes(); in dropUndefImplyingAttrsAndUnknownMetadata()
461 CI->getAttributes() == cast<CallInst>(I2)->getAttributes() && in haveSameSpecialState()
465 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() && in haveSameSpecialState()
469 CI->getAttributes() == cast<CallBrInst>(I2)->getAttributes() && in haveSameSpecialState()
H A DTypeFinder.cpp59 incorporateAttributes(FI.getAttributes()); in run()
84 incorporateAttributes(CB->getAttributes()); in run()
H A DPseudoProbe.cpp53 Probe.Attr = II->getAttributes()->getZExtValue(); in extractProbe()
H A DFunction.cpp141 AttributeList Attrs = getParent()->getAttributes(); in hasPassPointeeByValueCopyAttr()
150 AttributeList Attrs = getParent()->getAttributes(); in hasPointeeInMemoryValueAttr()
179 getParent()->getAttributes().getParamAttrs(getArgNo()); in getPassPointeeByValueCopySize()
187 getParent()->getAttributes().getParamAttrs(getArgNo()); in getPointeeInMemoryValueType()
279 AttributeList Attrs = getParent()->getAttributes(); in onlyReadsMemory()
285 AttributeList AL = getParent()->getAttributes(); in addAttrs()
303 AttributeList AL = getParent()->getAttributes(); in removeAttrs()
409 setAttributes(Intrinsic::getAttributes(getContext(), IntID)); in Function()
717 setAttributes(Src->getAttributes()); in copyAttributesFrom()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DASTTests.cpp581 return getAttributes(DynTypedNode::create(findUnqualifiedDecl(AST, Name))); in TEST()
592 ASSERT_THAT(getAttributes(DynTypedNode::create(*FooIf)), in TEST()
594 ASSERT_THAT(getAttributes(DynTypedNode::create(*FooIf->getThen())), in TEST()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGLoopInfo.h101 const LoopAttributes &getAttributes() const { return Attrs; } in getAttributes() function
224 return hasInfo() ? getInfo().getAttributes().IsParallel : false; in getCurLoopParallel()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp431 CB.getAttributes().hasParamAttr(I, Attribute::ByVal)) { in isLegalToPromote()
437 CB.getAttributes().hasParamAttr(I, Attribute::InAlloca)) { in isLegalToPromote()
489 const AttributeList &CallerPAL = CB.getAttributes(); in promoteCall()
H A DLowerInvoke.cpp58 NewCall->setAttributes(II->getAttributes()); in runImpl()
H A DSimplifyLibCalls.cpp655 NewCI->setAttributes(CI->getAttributes()); in optimizeStrCpy()
689 NewCI->setAttributes(CI->getAttributes()); in optimizeStpCpy()
753 NewCI->setAttributes(CI->getAttributes()); in optimizeStrNCpy()
1444 NewCI->setAttributes(CI->getAttributes()); in optimizeMemCpy()
1500 NewCI->setAttributes(CI->getAttributes()); in optimizeMemPCpy()
1515 NewCI->setAttributes(CI->getAttributes()); in optimizeMemMove()
1530 NewCI->setAttributes(CI->getAttributes()); in optimizeMemSet()
3608 NewCI->setAttributes(CI->getAttributes()); in optimizeMemCpyChk()
3622 NewCI->setAttributes(CI->getAttributes()); in optimizeMemMoveChk()
3636 NewCI->setAttributes(CI->getAttributes()); in optimizeMemSetChk()
[all …]
H A DFunctionComparator.cpp122 AttributeSet LAS = L.getAttributes(i); in cmpAttrs()
123 AttributeSet RAS = R.getAttributes(i); in cmpAttrs()
602 if (int Res = cmpAttrs(CBL->getAttributes(), CBR->getAttributes())) in cmpOperations()
832 if (int Res = cmpAttrs(FnL->getAttributes(), FnR->getAttributes())) in compareSignature()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp185 AttributeList PAL = CB->getAttributes(); in deleteDeadVarargs()
491 if (F.getAttributes().hasAttrSomewhere(Attribute::InAlloca) || in surveyFunction()
492 F.getAttributes().hasAttrSomewhere(Attribute::Preallocated)) { in surveyFunction()
737 const AttributeList &PAL = F->getAttributes(); in removeDeadStuffFromFunction()
874 const AttributeList &CallPAL = CB.getAttributes(); in removeDeadStuffFromFunction()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCGenScalarMASSEntries.cpp101 MASSEntryStr, Func.getFunctionType(), Func.getAttributes()); in createScalarMASSCall()
H A DPPCLowerMASSVEntries.cpp146 MASSVEntryName, Func.getFunctionType(), Func.getAttributes()); in lowerMASSVCall()
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DOpDefinitionsGen.cpp335 for (const NamedAttribute &namedAttr : op.getAttributes()) { in computeAttrMetadata()
580 for (const auto &namedAttr : op.getAttributes()) in populateSubstitutions()
791 for (const auto &namedAttr : emitHelper.getOp().getAttributes()) in genAttributeVerifier()
1005 for (const NamedAttribute &namedAttr : op.getAttributes()) { in genAttrGetters()
1016 auto derivedAttrs = make_filter_range(op.getAttributes(), in genAttrGetters()
1100 for (const NamedAttribute &namedAttr : op.getAttributes()) { in genAttrSetters()
1124 for (const NamedAttribute &namedAttr : op.getAttributes()) in genOptionalAttrRemovers()
1596 if (llvm::all_of(op.getAttributes(), [](const NamedAttribute &named) { in genPopulateDefaultAttributes()
1617 for (const NamedAttribute &namedAttr : op.getAttributes()) { in genPopulateDefaultAttributes()
2098 for (const auto &namedAttr : op.getAttributes()) { in genCodeForAddingArgAndRegionForBuilder()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DAST.h168 std::vector<const Attr *> getAttributes(const DynTypedNode &);
/llvm-project-15.0.7/llvm/tools/bugpoint-passes/
H A DTestPasses.cpp146 AttributeSet A = F.getAttributes().getFnAttrs(); in runOnFunction()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp75 if (F.getAttributes().hasParamAttr(Idx, Attribute::SExt)) { in runOnFunction()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseDecl.cpp1732 for (ParsedAttr &AL : DS.getAttributes()) { in stripTypeAttributesOffDeclSpec()
1740 DS.getAttributes().remove(AL); in stripTypeAttributesOffDeclSpec()
3738 ParseBorlandTypeAttributes(DS.getAttributes()); in ParseDeclarationSpecifiers()
3899 ParseAlignmentSpecifier(DS.getAttributes()); in ParseDeclarationSpecifiers()
4256 ParseOpenCLQualifiers(DS.getAttributes()); in ParseDeclarationSpecifiers()
5729 ParseOpenCLQualifiers(DS.getAttributes()); in ParseTypeQualifierListOpt()
5791 ParseGNUAttributes(DS.getAttributes()); in ParseTypeQualifierListOpt()
5940 std::move(DS.getAttributes()), in ParseDeclaratorInternal()
6642 for (ParsedAttr &attr : DS.getAttributes()) { in InitCXXThisScopeForDeclaratorIfRelevant()
7049 MaybeParseHLSLSemantics(DS.getAttributes()); in ParseParameterDeclarationClause()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/ODS/
H A DOperation.h162 ArrayRef<Attribute> getAttributes() const { return attributes; } in getAttributes() function
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp137 NewF->setAttributes(F.getAttributes()); in runOnModule()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64RegisterInfo.cpp95 MF->getFunction().getAttributes().hasAttrSomewhere( in getCalleeSavedRegs()
131 MF->getFunction().getAttributes().hasAttrSomewhere( in getDarwinCalleeSavedRegs()
199 MF.getFunction().getAttributes().hasAttrSomewhere(Attribute::SwiftError)) in getDarwinCallPreservedMask()
234 MF.getFunction().getAttributes().hasAttrSomewhere(Attribute::SwiftError)) in getCallPreservedMask()

1234567