/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Function.h | 222 bool hasFnAttribute(Attribute::AttrKind Kind) const { in hasFnAttribute() function 223 return AttributeSets.hasFnAttribute(Kind); in hasFnAttribute() 225 bool hasFnAttribute(StringRef Kind) const { in hasFnAttribute() function 226 return AttributeSets.hasFnAttribute(Kind); in hasFnAttribute() 239 if (!hasFnAttribute(Attribute::StackAlignment)) in getFnStackAlignment() 310 return hasFnAttribute(Attribute::ReadNone); in doesNotAccessMemory() 318 return doesNotAccessMemory() || hasFnAttribute(Attribute::ReadOnly); in onlyReadsMemory() 326 return doesNotAccessMemory() || hasFnAttribute(Attribute::WriteOnly); in doesNotReadMemory() 335 return hasFnAttribute(Attribute::ArgMemOnly); in onlyAccessesArgMemory() 342 return hasFnAttribute(Attribute::InaccessibleMemOnly); in onlyAccessesInaccessibleMemory() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | Function.h | 307 bool hasFnAttribute(Attribute::AttrKind Kind) const { in hasFnAttribute() function 308 return AttributeSets.hasFnAttribute(Kind); in hasFnAttribute() 312 bool hasFnAttribute(StringRef Kind) const { in hasFnAttribute() function 313 return AttributeSets.hasFnAttribute(Kind); in hasFnAttribute() 328 if (!hasFnAttribute(Attribute::StackAlignment)) in getFnStackAlignment() 447 return hasFnAttribute(Attribute::ReadNone); in doesNotAccessMemory() 455 return doesNotAccessMemory() || hasFnAttribute(Attribute::ReadOnly); in onlyReadsMemory() 463 return doesNotAccessMemory() || hasFnAttribute(Attribute::WriteOnly); in doesNotReadMemory() 472 return hasFnAttribute(Attribute::ArgMemOnly); in onlyAccessesArgMemory() 479 return hasFnAttribute(Attribute::InaccessibleMemOnly); in onlyAccessesInaccessibleMemory() [all …]
|
/external/llvm/include/llvm/IR/ |
D | Function.h | 199 bool hasFnAttribute(Attribute::AttrKind Kind) const { 200 return AttributeSets.hasFnAttribute(Kind); 202 bool hasFnAttribute(StringRef Kind) const { 216 if (!hasFnAttribute(Attribute::StackAlignment)) 287 return hasFnAttribute(Attribute::ReadNone); 295 return doesNotAccessMemory() || hasFnAttribute(Attribute::ReadOnly); 303 return doesNotAccessMemory() || hasFnAttribute(Attribute::WriteOnly); 312 return hasFnAttribute(Attribute::ArgMemOnly); 319 return hasFnAttribute(Attribute::InaccessibleMemOnly); 328 return hasFnAttribute(Attribute::InaccessibleMemOrArgMemOnly); [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | SIMachineFunctionInfo.cpp | 81 if (F.hasFnAttribute("amdgpu-implicitarg-ptr")) in SIMachineFunctionInfo() 84 if (F.hasFnAttribute("amdgpu-implicitarg-ptr")) { in SIMachineFunctionInfo() 100 if (F.hasFnAttribute("amdgpu-work-group-id-x")) in SIMachineFunctionInfo() 103 if (F.hasFnAttribute("amdgpu-work-group-id-y")) in SIMachineFunctionInfo() 106 if (F.hasFnAttribute("amdgpu-work-group-id-z")) in SIMachineFunctionInfo() 109 if (F.hasFnAttribute("amdgpu-work-item-id-x")) in SIMachineFunctionInfo() 112 if (F.hasFnAttribute("amdgpu-work-item-id-y")) in SIMachineFunctionInfo() 115 if (F.hasFnAttribute("amdgpu-work-item-id-z")) in SIMachineFunctionInfo() 145 if (F.hasFnAttribute("amdgpu-dispatch-ptr")) in SIMachineFunctionInfo() 148 if (F.hasFnAttribute("amdgpu-queue-ptr")) in SIMachineFunctionInfo() [all …]
|
D | AMDGPUInline.cpp | 112 Callee->hasFnAttribute(Attribute::InlineHint); in getInlineThreshold() 114 && !Caller->hasFnAttribute(Attribute::MinSize)) in getInlineThreshold()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | TargetFrameLoweringImpl.cpp | 40 assert(MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in enableCalleeSaveSkip() 41 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) && in enableCalleeSaveSkip() 42 !MF.getFunction().hasFnAttribute(Attribute::UWTable)); in enableCalleeSaveSkip() 92 if (MF.getFunction().hasFnAttribute(Attribute::Naked)) in determineCalleeSaves() 102 if (MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in determineCalleeSaves() 103 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) && in determineCalleeSaves() 104 !MF.getFunction().hasFnAttribute(Attribute::UWTable) && in determineCalleeSaves()
|
D | StackProtector.cpp | 226 if (F->hasFnAttribute(Attribute::SafeStack)) in RequiresStackProtector() 234 if (F->hasFnAttribute(Attribute::StackProtectReq)) { in RequiresStackProtector() 243 } else if (F->hasFnAttribute(Attribute::StackProtectStrong)) in RequiresStackProtector() 247 else if (!F->hasFnAttribute(Attribute::StackProtect)) in RequiresStackProtector()
|
D | ShrinkWrap.cpp | 597 !(MF.getFunction().hasFnAttribute(Attribute::SanitizeAddress) || in isShrinkWrapEnabled() 598 MF.getFunction().hasFnAttribute(Attribute::SanitizeThread) || in isShrinkWrapEnabled() 599 MF.getFunction().hasFnAttribute(Attribute::SanitizeMemory) || in isShrinkWrapEnabled() 600 MF.getFunction().hasFnAttribute(Attribute::SanitizeHWAddress)); in isShrinkWrapEnabled()
|
D | SafeStack.cpp | 717 if (Callee->isInterposable() || Callee->hasFnAttribute(Attribute::NoInline) || in ShouldInlinePointerAddress() 727 if(F.hasFnAttribute(Attribute::OptimizeNone)) in TryInlinePointerAddress() 743 assert(F.hasFnAttribute(Attribute::SafeStack) && in run() 794 if (F.hasFnAttribute(Attribute::StackProtect) || in run() 795 F.hasFnAttribute(Attribute::StackProtectStrong) || in run() 796 F.hasFnAttribute(Attribute::StackProtectReq)) { in run() 857 if (!F.hasFnAttribute(Attribute::SafeStack)) { in runOnFunction()
|
/external/llvm/lib/Target/AMDGPU/ |
D | SIMachineFunctionInfo.cpp | 98 if (F->hasFnAttribute("amdgpu-work-group-id-y") || ST.debuggerEmitPrologue()) 101 if (F->hasFnAttribute("amdgpu-work-group-id-z") || ST.debuggerEmitPrologue()) 104 if (F->hasFnAttribute("amdgpu-work-item-id-y") || ST.debuggerEmitPrologue()) 107 if (F->hasFnAttribute("amdgpu-work-item-id-z") || ST.debuggerEmitPrologue()) 125 if (F->hasFnAttribute("amdgpu-dispatch-ptr")) 128 if (F->hasFnAttribute("amdgpu-queue-ptr"))
|
D | AMDGPUAlwaysInlinePass.cpp | 42 !F.hasFnAttribute(Attribute::NoInline)) in runOnModule() 54 if (F.hasLocalLinkage() && !F.hasFnAttribute(Attribute::NoInline)) { in runOnModule()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | SyntheticCountsPropagation.cpp | 79 if (F.hasFnAttribute(Attribute::AlwaysInline) || in initializeCounts() 80 F.hasFnAttribute(Attribute::InlineHint)) { in initializeCounts() 88 } else if (F.hasFnAttribute(Attribute::Cold) || in initializeCounts() 89 F.hasFnAttribute(Attribute::NoInline)) { in initializeCounts()
|
D | PruneEH.cpp | 103 F->hasFnAttribute(Attribute::Naked) && in runImpl() 104 F->hasFnAttribute(Attribute::NoInline); in runImpl() 155 if (!SCCMightUnwind && !F->hasFnAttribute(Attribute::NoUnwind)) { in runImpl() 160 if (!SCCMightReturn && !F->hasFnAttribute(Attribute::NoReturn)) { in runImpl()
|
/external/llvm/lib/Transforms/IPO/ |
D | PruneEH.cpp | 107 F->hasFnAttribute(Attribute::Naked) && in runImpl() 108 F->hasFnAttribute(Attribute::NoInline); in runImpl() 159 if (!SCCMightUnwind && !F->hasFnAttribute(Attribute::NoUnwind)) { in runImpl() 164 if (!SCCMightReturn && !F->hasFnAttribute(Attribute::NoReturn)) { in runImpl()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyISelDAGToDAG.cpp | 51 ForCodeSize = MF.getFunction().hasFnAttribute(Attribute::OptimizeForSize) || in runOnMachineFunction() 52 MF.getFunction().hasFnAttribute(Attribute::MinSize); in runOnMachineFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | ModuleSummaryAnalysis.cpp | 358 F.getAttributes().hasFnAttribute(Attribute::NoInline); in computeFunctionSummary() 362 F.hasFnAttribute(Attribute::ReadNone), in computeFunctionSummary() 363 F.hasFnAttribute(Attribute::ReadOnly), in computeFunctionSummary() 364 F.hasFnAttribute(Attribute::NoRecurse), in computeFunctionSummary() 478 F->hasFnAttribute(Attribute::ReadNone), in buildModuleSummaryIndex() 479 F->hasFnAttribute(Attribute::ReadOnly), in buildModuleSummaryIndex() 480 F->hasFnAttribute(Attribute::NoRecurse), in buildModuleSummaryIndex()
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyISelDAGToDAG.cpp | 51 MF.getFunction()->hasFnAttribute(Attribute::OptimizeForSize) || in runOnMachineFunction() 52 MF.getFunction()->hasFnAttribute(Attribute::MinSize); in runOnMachineFunction()
|
/external/llvm/lib/Target/Mips/ |
D | Mips16HardFloat.cpp | 500 if (F.hasFnAttribute("use-soft-float")) { in removeUseSoftFloat() 529 if (F->hasFnAttribute("nomips16") && in runOnModule() 530 F->hasFnAttribute("use-soft-float")) { in runOnModule() 534 if (F->isDeclaration() || F->hasFnAttribute("mips16_fp_stub") || in runOnModule() 535 F->hasFnAttribute("nomips16")) continue; in runOnModule()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/ |
D | Mips16HardFloat.cpp | 488 if (F.hasFnAttribute("use-soft-float")) { in removeUseSoftFloat() 516 if (F->hasFnAttribute("nomips16") && in runOnModule() 517 F->hasFnAttribute("use-soft-float")) { in runOnModule() 521 if (F->isDeclaration() || F->hasFnAttribute("mips16_fp_stub") || in runOnModule() 522 F->hasFnAttribute("nomips16")) continue; in runOnModule()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Attributes.cpp | 1213 bool AttributeList::hasFnAttribute(Attribute::AttrKind Kind) const { in hasFnAttribute() function in AttributeList 1214 return pImpl && pImpl->hasFnAttribute(Kind); in hasFnAttribute() 1217 bool AttributeList::hasFnAttribute(StringRef Kind) const { in hasFnAttribute() function in AttributeList 1639 if (Callee.hasFnAttribute(Attribute::StackProtectReq)) { in adjustCallerSSPLevel() 1642 } else if (Callee.hasFnAttribute(Attribute::StackProtectStrong) && in adjustCallerSSPLevel() 1643 !Caller.hasFnAttribute(Attribute::StackProtectReq)) { in adjustCallerSSPLevel() 1646 } else if (Callee.hasFnAttribute(Attribute::StackProtect) && in adjustCallerSSPLevel() 1647 !Caller.hasFnAttribute(Attribute::StackProtectReq) && in adjustCallerSSPLevel() 1648 !Caller.hasFnAttribute(Attribute::StackProtectStrong)) in adjustCallerSSPLevel() 1655 if (!Caller.hasFnAttribute("probe-stack") && in adjustCallerStackProbes() [all …]
|
/external/llvm/lib/CodeGen/ |
D | StackProtector.cpp | 222 if (F->hasFnAttribute(Attribute::SafeStack)) in RequiresStackProtector() 225 if (F->hasFnAttribute(Attribute::StackProtectReq)) { in RequiresStackProtector() 228 } else if (F->hasFnAttribute(Attribute::StackProtectStrong)) in RequiresStackProtector() 232 else if (!F->hasFnAttribute(Attribute::StackProtect)) in RequiresStackProtector()
|
D | TargetRegisterInfo.cpp | 365 return !MF.getFunction()->hasFnAttribute("no-realign-stack"); in canRealignStack() 375 F->hasFnAttribute(Attribute::StackAlignment)); in needsStackRealignment() 376 if (MF.getFunction()->hasFnAttribute("stackrealign") || requiresRealignment) { in needsStackRealignment()
|
D | ShrinkWrap.cpp | 544 !(MF.getFunction()->hasFnAttribute(Attribute::SanitizeAddress) || in isShrinkWrapEnabled() 545 MF.getFunction()->hasFnAttribute(Attribute::SanitizeThread) || in isShrinkWrapEnabled() 546 MF.getFunction()->hasFnAttribute(Attribute::SanitizeMemory)); in isShrinkWrapEnabled()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/RISCV/ |
D | RISCVRegisterInfo.cpp | 36 if (MF->getFunction().hasFnAttribute("interrupt")) { in getCalleeSavedRegs() 120 if (MF.getFunction().hasFnAttribute("interrupt")) { in getCallPreservedMask()
|
/external/llvm/lib/IR/ |
D | Pass.cpp | 153 if (F.hasFnAttribute(Attribute::OptimizeNone)) { in skipFunction() 186 if (F->hasFnAttribute(Attribute::OptimizeNone)) { in skipBasicBlock()
|