Home
last modified time | relevance | path

Searched refs:hasFnAttr (Results 1 – 25 of 40) sorted by relevance

12

/external/swiftshader/third_party/LLVM/include/llvm/
DFunction.h176 bool hasFnAttr(Attributes N) const {
220 return hasFnAttr(Attribute::ReadNone);
229 return doesNotAccessMemory() || hasFnAttr(Attribute::ReadOnly);
238 return hasFnAttr(Attribute::NoReturn);
247 return hasFnAttr(Attribute::NoUnwind);
257 return hasFnAttr(Attribute::UWTable);
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DInliner.cpp89 if (Callee->hasFnAttr(Attribute::StackProtectReq)) in InlineCallIfPossible()
91 else if (Callee->hasFnAttr(Attribute::StackProtect) && in InlineCallIfPossible()
92 !Caller->hasFnAttr(Attribute::StackProtectReq)) in InlineCallIfPossible()
203 Caller->hasFnAttr(Attribute::OptimizeForSize) && in getInlineThreshold()
210 Callee->hasFnAttr(Attribute::InlineHint)) in getInlineThreshold()
DInlineAlways.cpp84 if (!I->isDeclaration() && !I->hasFnAttr(Attribute::AlwaysInline)) in doInitialization()
DInlineSimple.cpp85 if (!I->isDeclaration() && I->hasFnAttr(Attribute::NoInline)) in doInitialization()
/external/llvm/include/llvm/IR/
DCallSite.h337 bool hasFnAttr(Attribute::AttrKind Kind) const { in hasFnAttr() function
338 CALLSITE_DELEGATE_GETTER(hasFnAttr(Kind)); in hasFnAttr()
342 bool hasFnAttr(StringRef Kind) const { in hasFnAttr() function
343 CALLSITE_DELEGATE_GETTER(hasFnAttr(Kind)); in hasFnAttr()
DInstructions.h1650 bool hasFnAttr(Attribute::AttrKind Kind) const {
1657 bool hasFnAttr(StringRef Kind) const {
1717 bool isNoInline() const { return hasFnAttr(Attribute::NoInline); }
1724 return hasFnAttr(Attribute::ReturnsTwice);
1732 return hasFnAttr(Attribute::ReadNone);
1740 return doesNotAccessMemory() || hasFnAttr(Attribute::ReadOnly);
1748 return doesNotAccessMemory() || hasFnAttr(Attribute::WriteOnly);
1757 return hasFnAttr(Attribute::ArgMemOnly);
1764 bool doesNotReturn() const { return hasFnAttr(Attribute::NoReturn); }
1770 bool doesNotThrow() const { return hasFnAttr(Attribute::NoUnwind); }
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DStackProtector.cpp107 if (F->hasFnAttr(Attribute::StackProtectReq)) in RequiresStackProtector()
110 if (!F->hasFnAttr(Attribute::StackProtect)) in RequiresStackProtector()
DPrologEpilogInserter.cpp99 if (!F->hasFnAttr(Attribute::Naked)) in runOnMachineFunction()
114 if (!F->hasFnAttr(Attribute::Naked)) in runOnMachineFunction()
221 if (Fn.getFunction()->hasFnAttr(Attribute::Naked)) in calculateCalleeSavedRegisters()
DMachineFunction.cpp64 if (Fn->hasFnAttr(Attribute::StackAlignment)) in MachineFunction()
70 if (!Fn->hasFnAttr(Attribute::OptimizeForSize)) in MachineFunction()
DCodePlacementOpt.cpp379 if (F->hasFnAttr(Attribute::OptimizeForSize)) in AlignLoops()
DTailDuplication.cpp543 MF.getFunction()->hasFnAttr(Attribute::OptimizeForSize)) in shouldTailDuplicate()
/external/llvm/lib/Transforms/IPO/
DInlineAlways.cpp99 CS.hasFnAttr(Attribute::AlwaysInline) && isInlineViable(*Callee)) in getInlineCost()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopUnrollPass.cpp144 Header->getParent()->hasFnAttr(Attribute::OptimizeForSize)) in runOnLoop()
DLoopUnswitch.cpp434 if (OptimizeForSize || F->hasFnAttr(Attribute::OptimizeForSize)) in UnswitchIfProfitable()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInlineCost.cpp488 Callee->hasFnAttr(Attribute::NoInline) || NeverInline.count(Callee) || in getInlineCost()
507 if (!Callee->isDeclaration() && Callee->hasFnAttr(Attribute::AlwaysInline)) in getInlineCost()
/external/llvm/lib/Transforms/Scalar/
DSink.cpp82 if (CS.hasFnAttr(Attribute::Convergent)) in isSafeToMove()
DLoopUnswitch.cpp538 if (CS.hasFnAttr(Attribute::Convergent)) in processCurrentLoop()
/external/llvm/unittests/IR/
DInstructionsTest.cpp546 EXPECT_TRUE(Clone->hasFnAttr(Attribute::AttrKind::Cold)); in TEST()
576 EXPECT_TRUE(Clone->hasFnAttr(Attribute::AttrKind::Cold)); in TEST()
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCFrameLowering.cpp188 bool DisableRedZone = MF.getFunction()->hasFnAttr(Attribute::NoRedZone); in determineFrameLayout()
244 if (MF.getFunction()->hasFnAttr(Attribute::Naked)) in needsFP()
DPPCRegisterInfo.cpp575 if (!MF.getFunction()->hasFnAttr(Attribute::Naked)) in eliminateFrameIndex()
/external/llvm/lib/Analysis/
DInlineCost.cpp883 if (CS.hasFnAttr(Attribute::ReturnsTwice) && in visitCallSite()
1480 if (CS.hasFnAttr(Attribute::AlwaysInline)) { in getInlineCost()
DBranchProbabilityInfo.cpp276 if (CI->hasFnAttr(Attribute::Cold)) { in calcColdCallHeuristics()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp1350 return CI->hasFnAttr(Attribute::NoUnwind) && in isTrigLibCall()
1351 CI->hasFnAttr(Attribute::ReadNone); in isTrigLibCall()
1556 if (!CI->hasFnAttr(Attribute::Cold) && in optimizeErrorReporting()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86RegisterInfo.cpp464 F->hasFnAttr(Attribute::StackAlignment)); in needsStackRealignment()
/external/llvm/lib/IR/
DFunction.cpp1157 if (CS && CS.hasFnAttr(Attribute::ReturnsTwice)) in callsFunctionThatReturnsTwice()

12