reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/CodeGen/CommandFlags.inc
  375     AttributeList Attrs = F.getAttributes();
include/llvm/IR/Function.h
  251     setAttributes(getAttributes().removeAttribute(
  399     return getAttributes().hasAttribute(i, Kind);
  404     return getAttributes().hasParamAttribute(ArgNo, Kind);
  409     return getAttributes().getParamAttr(ArgNo, Kind);
include/llvm/IR/Statepoint.h
  194            (F ? F->getAttributes().hasAttribute(i, A) : false);
include/llvm/Transforms/IPO/Attributor.h
  444       AttrList = getAssociatedFunction()->getAttributes();
  461       AttrList = getAssociatedFunction()->getAttributes();
lib/Analysis/ModuleSummaryAnalysis.cpp
  469       F.getAttributes().hasFnAttribute(Attribute::NoInline)};
lib/AsmParser/LLParser.cpp
  134       AttributeList AS = Fn->getAttributes();
lib/Bitcode/Writer/BitcodeWriter.cpp
 1319     Vals.push_back(VE.getAttributeListID(F.getAttributes()));
lib/Bitcode/Writer/ValueEnumerator.cpp
  333     EnumerateAttributes(F.getAttributes());
  975   EnumerateAttributes(F.getAttributes());
lib/CodeGen/Analysis.cpp
  566   AttrBuilder CallerAttrs(F->getAttributes(), AttributeList::ReturnIndex);
lib/CodeGen/GlobalISel/CallLowering.cpp
   78   const AttributeList &Attrs = FuncInfo.getAttributes();
lib/CodeGen/GlobalISel/CombinerHelper.cpp
  951           MF.getFunction().getAttributes(), TLI))
 1070           SrcPtrInfo.getAddrSpace(), MF.getFunction().getAttributes(), TLI))
 1177           SrcPtrInfo.getAddrSpace(), MF.getFunction().getAttributes(), TLI))
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  338   AttributeList CallerAttrs = F.getAttributes();
lib/CodeGen/MachinePipeliner.cpp
  202   if (mf.getFunction().getAttributes().hasAttribute(
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
 3678   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
 3758   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
 3816   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
 3858   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
 3917   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
   95   GetReturnInfo(CC, Fn->getReturnType(), Fn->getAttributes(), Outs, *TLI,
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 5808           SrcPtrInfo.getAddrSpace(), MF.getFunction().getAttributes()))
 5990           MF.getFunction().getAttributes()))
 6091           MF.getFunction().getAttributes()))
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1836       if (F->getAttributes().hasAttribute(AttributeList::ReturnIndex,
 1839       else if (F->getAttributes().hasAttribute(AttributeList::ReturnIndex,
 1844       bool RetInReg = F->getAttributes().hasAttribute(
 1899       F->getAttributes().hasAttrSomewhere(Attribute::SwiftError)) {
 7114       Caller->getAttributes().hasAttrSomewhere(Attribute::SwiftError))
lib/CodeGen/SelectionDAG/TargetLowering.cpp
   58   AttributeList CallerAttrs = F.getAttributes();
 3862     AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
 4624   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
lib/CodeGen/StackProtector.cpp
  450       Call->setAttributes(GuardCheck->getAttributes());
lib/CodeGen/SwiftErrorValueTracking.cpp
  307       if (!F->getAttributes().hasAttrSomewhere(Attribute::SwiftError))
lib/ExecutionEngine/ExecutionEngineBindings.cpp
  189       auto Attrs = F.getAttributes();
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
  249   Call->setAttributes(F.getAttributes());
lib/IR/AsmWriter.cpp
  968     AttributeSet FnAttrs = F.getAttributes().getFnAttributes();
 3407   const AttributeList &Attrs = F->getAttributes();
lib/IR/Core.cpp
 2394   auto AS = unwrap<Function>(F)->getAttributes().getAttributes(Idx);
 2400   auto AS = unwrap<Function>(F)->getAttributes().getAttributes(Idx);
lib/IR/Function.cpp
  106   AttributeList Attrs = getParent()->getAttributes();
  170   AttributeList Attrs = getParent()->getAttributes();
  176   AttributeList AL = getParent()->getAttributes();
  382   AttributeList PAL = getAttributes();
  388   AttributeList PAL = getAttributes();
  394   AttributeList PAL = getAttributes();
  400   AttributeList PAL = getAttributes();
  406   AttributeList PAL = getAttributes();
  412   AttributeList PAL = getAttributes();
  418   AttributeList PAL = getAttributes();
  424   AttributeList PAL = getAttributes();
  430   AttributeList PAL = getAttributes();
  436   AttributeList PAL = getAttributes();
  442   AttributeList PAL = getAttributes();
  448   AttributeList PAL = getAttributes();
  454   AttributeList PAL = getAttributes();
  460   AttributeList PAL = getAttributes();
  466   AttributeList PAL = getAttributes();
  473   AttributeList PAL = getAttributes();
  500   setAttributes(Src->getAttributes());
lib/IR/Instructions.cpp
  315     if (F->getAttributes().hasAttrSomewhere(Attribute::Returned, &Index) &&
  328     return F->getAttributes().hasAttribute(AttributeList::ReturnIndex, Kind);
  339     return F->getAttributes().hasParamAttribute(ArgNo, Kind);
  345     return F->getAttributes().hasAttribute(AttributeList::FunctionIndex, Kind);
  351     return F->getAttributes().hasAttribute(AttributeList::FunctionIndex, Kind);
lib/IR/Value.cpp
  724           Call->getCalledFunction()->getAttributes().getRetAlignment());
lib/IR/Verifier.cpp
 2155   AttributeList Attrs = F.getAttributes();
 3079   AttributeList CallerAttrs = F->getAttributes();
lib/Linker/IRMover.cpp
  661   F->setAttributes(mapAttributeTypes(F->getContext(), F->getAttributes()));
lib/Target/AArch64/AArch64CallLowering.cpp
  302           if (F.getAttributes().hasAttribute(AttributeList::ReturnIndex,
  305           else if (F.getAttributes().hasAttribute(AttributeList::ReturnIndex,
lib/Target/AArch64/AArch64FastISel.cpp
 3850       F.getAttributes().hasAttrSomewhere(Attribute::SwiftError))
 3862     GetReturnInfo(CC, F.getReturnType(), F.getAttributes(), Outs, TLI, DL);
lib/Target/AArch64/AArch64FrameLowering.cpp
 1769   AttributeList Attrs = MF.getFunction().getAttributes();
lib/Target/AArch64/AArch64ISelLowering.cpp
 9336   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
lib/Target/AArch64/AArch64RegisterInfo.cpp
   64       MF->getFunction().getAttributes().hasAttrSomewhere(
  133       MF.getFunction().getAttributes().hasAttrSomewhere(Attribute::SwiftError))
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  537     return F->getAttributes().hasParamAttribute(A->getArgNo(), Attribute::InReg) ||
  538            F->getAttributes().hasParamAttribute(A->getArgNo(), Attribute::ByVal);
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp
  351                               NewF->getAttributes());
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
 1234     return F->getAttributes().hasParamAttribute(A->getArgNo(), Attribute::InReg) ||
 1235            F->getAttributes().hasParamAttribute(A->getArgNo(), Attribute::ByVal);
lib/Target/ARM/ARMBaseRegisterInfo.cpp
   97       F.getAttributes().hasAttrSomewhere(Attribute::SwiftError)) {
  131       MF.getFunction().getAttributes().hasAttrSomewhere(Attribute::SwiftError))
lib/Target/ARM/ARMFastISel.cpp
 2098       F.getAttributes().hasAttrSomewhere(Attribute::SwiftError))
 2110     GetReturnInfo(CC, F.getReturnType(), F.getAttributes(), Outs, TLI, DL);
lib/Target/ARM/ARMTargetTransformInfo.cpp
  542           F->getAttributes()))
lib/Target/AVR/AVRISelLowering.cpp
 1413   if (MF.getFunction().getAttributes().hasAttribute(
lib/Target/Hexagon/HexagonOptimizeSZextends.cpp
   74     if (F.getAttributes().hasAttribute(Idx, Attribute::SExt)) {
lib/Target/Hexagon/HexagonTargetMachine.cpp
  228   AttributeList FnAttrs = F.getAttributes();
lib/Target/Mips/MipsFastISel.cpp
 1701     GetReturnInfo(CC, F.getReturnType(), F.getAttributes(), Outs, TLI, DL);
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  706     if (F->getAttributes().hasFnAttribute("nvptx-libcall-callee")) {
 1412   const AttributeList &PAL = F->getAttributes();
lib/Target/NVPTX/NVPTXISelLowering.cpp
 2471   const AttributeList &PAL = F->getAttributes();
lib/Target/PowerPC/PPCFastISel.cpp
 1703     GetReturnInfo(CC, F.getReturnType(), F.getAttributes(), Outs, TLI, DL);
lib/Target/PowerPC/PPCInstrInfo.cpp
 4043               CalleeFn->getAttributes().getRetAttributes();
lib/Target/SystemZ/SystemZRegisterInfo.cpp
  202       MF->getFunction().getAttributes().hasAttrSomewhere(
  216       MF.getFunction().getAttributes().hasAttrSomewhere(
lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
  127     NewF->setAttributes(F.getAttributes());
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  645     const AttributeList &Attrs = F->getAttributes();
 1338   if (FuncInfo.Fn->getAttributes().hasAttribute(0, Attribute::SExt))
 1340   else if (FuncInfo.Fn->getAttributes().hasAttribute(0, Attribute::ZExt))
lib/Target/X86/X86FastISel.cpp
 1154       F.getAttributes().hasAttrSomewhere(Attribute::SwiftError))
 1190     GetReturnInfo(CC, F.getReturnType(), F.getAttributes(), Outs, TLI, DL);
lib/Target/X86/X86ISelLowering.cpp
20308   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
24450       const AttributeList &Attrs = Func->getAttributes();
lib/Target/X86/X86IndirectBranchTracking.cpp
   93   AttributeList Attrs = CalleeFn->getAttributes();
lib/Target/X86/X86RegisterInfo.cpp
  384                      F.getAttributes().hasAttrSomewhere(Attribute::SwiftError);
  501                      F.getAttributes().hasAttrSomewhere(Attribute::SwiftError);
lib/Target/XCore/XCoreFrameLowering.cpp
  240   const AttributeList &PAL = MF.getFunction().getAttributes();
lib/Transforms/Coroutines/CoroSplit.cpp
  676   auto OrigAttrs = NewF->getAttributes();
  691     NewAttrs = Shape.RetconLowering.ResumePrototype->getAttributes();
lib/Transforms/IPO/ArgumentPromotion.cpp
  135   AttributeList PAL = F->getAttributes();
  891   if (F->getAttributes().hasAttrSomewhere(Attribute::InAlloca))
lib/Transforms/IPO/Attributor.cpp
  348     Attrs = ScopeFn->getAttributes();
lib/Transforms/IPO/DeadArgumentElimination.cpp
  489   if (F.getAttributes().hasAttrSomewhere(Attribute::InAlloca)) {
  744   const AttributeList &PAL = F->getAttributes();
lib/Transforms/IPO/FunctionAttrs.cpp
 1046     if (F->getAttributes().hasAttribute(AttributeList::ReturnIndex,
 1081       if (F->getAttributes().hasAttribute(AttributeList::ReturnIndex,
lib/Transforms/IPO/GlobalOpt.cpp
 2121   F->setAttributes(StripAttr(F->getContext(), F->getAttributes(), A));
 2304     if (F->getAttributes().hasAttrSomewhere(Attribute::InAlloca) &&
 2338     if (F->getAttributes().hasAttrSomewhere(Attribute::Nest) &&
lib/Transforms/IPO/MergeFunctions.cpp
  464       auto NewPAL = New->getAttributes();
  717   CI->setAttributes(F->getAttributes());
lib/Transforms/InstCombine/InstCombineCalls.cpp
 4486   if (Callee->getAttributes().hasAttrSomewhere(Attribute::InAlloca) ||
 4487       Callee->getAttributes().hasAttrSomewhere(Attribute::ByVal))
 4708   AttributeList NestAttrs = NestF->getAttributes();
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
 1260           cast<CallBase>(Op0)->getCalledFunction()->getAttributes();
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 3758     for (const auto &Attr : F.getAttributes().getFnAttributes()) {
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 2392   if (AH.getAttributes().hasAttribute(Index, Attribute::NoAlias))
 2396     AH.setAttributes(AH.getAttributes().removeAttributes(Ctx, Index, R));
lib/Transforms/Utils/CloneFunction.cpp
  100   AttributeList NewAttrs = NewFunc->getAttributes();
  112   AttributeList OldAttrs = OldFunc->getAttributes();
lib/Transforms/Utils/CodeExtractor.cpp
  841   for (const auto &Attr : oldFunction->getAttributes().getFnAttributes()) {
lib/Transforms/Utils/FunctionComparator.cpp
  796   if (int Res = cmpAttrs(FnL->getAttributes(), FnR->getAttributes()))
  796   if (int Res = cmpAttrs(FnL->getAttributes(), FnR->getAttributes()))
lib/Transforms/Utils/SimplifyLibCalls.cpp
 1302     AttributeList CalleeAttrs = CalleeFn->getAttributes();
 1431   AttributeList Attrs = Pow->getCalledFunction()->getAttributes();
 1593   AttributeList Attrs = Pow->getCalledFunction()->getAttributes();
 1716         Sqrt = getSqrtCall(Base, Pow->getCalledFunction()->getAttributes(),
 1778                                    B, CI->getCalledFunction()->getAttributes());
 1813   AttributeList Attrs = LogFn->getAttributes();
 2093       M->getOrInsertFunction(Name, OrigCallee->getAttributes(), ResTy, ArgTy);
 2391         M->getOrInsertFunction("iprintf", FT, Callee->getAttributes());
 2404                                FT, Callee->getAttributes());
 2486         M->getOrInsertFunction("siprintf", FT, Callee->getAttributes());
 2499                                FT, Callee->getAttributes());
 2659         M->getOrInsertFunction("fiprintf", FT, Callee->getAttributes());
 2672                                FT, Callee->getAttributes());
tools/bugpoint-passes/TestPasses.cpp
  138     AttributeSet A = F.getAttributes().getFnAttributes();
tools/bugpoint/CrashDebugger.cpp
 1134       for (Attribute A : Fn->getAttributes().getFnAttributes())
unittests/IR/IRBuilderTest.cpp
  237   AttributeList Attrs = BB->getParent()->getAttributes();
unittests/IR/VerifierTest.cpp
   53   AttributeList AS = F->getAttributes();