Home
last modified time | relevance | path

Searched refs:NoReturn (Results 1 – 25 of 44) sorted by relevance

12

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dreturn-noreturn.cpp149 struct NoReturn { struct
159 true ? NoReturn() : NoReturn(); in testTernaryUnconditionalNoreturn()
163 true ? NoReturn() : Return(); in testTernaryStaticallyConditionalNoretrunOnTrue()
167 true ? Return() : NoReturn(); in testTernaryStaticallyConditionalRetrunOnTrue()
171 false ? Return() : NoReturn(); in testTernaryStaticallyConditionalNoretrunOnFalse()
179 value ? (NoReturn() || NoReturn()) : Return(); in testTernaryConditionalNoreturnTrueBranch()
183 value ? Return() : (NoReturn() || NoReturn()); in testTernaryConditionalNoreturnFalseBranch()
195 false || NoReturn(); in testStaticallyExecutedLogicalOrBranch()
199 true && NoReturn(); in testStaticallyExecutedLogicalAndBranch()
203 true || NoReturn(); in testStaticallySkippedLogicalOrBranch()
[all …]
H A Ddeduced-return-type-cxx14.cpp335 namespace NoReturn { namespace
/llvm-project-15.0.7/clang/test/Analysis/
H A Dtemp-obj-dtors-cfg-output.cpp158 class NoReturn { class
160 ~NoReturn() __attribute__((noreturn));
166 NoReturn().f(); in test_noreturn1()
172 NoReturn(), 47; in test_noreturn2()
176 extern bool check(const NoReturn&);
181 if (!value || check(NoReturn())) { in testConsistencyNestedSimple()
191 if (!value || !value || check(NoReturn())) { in testConsistencyNestedComplex()
201 if (!value || value || check(NoReturn())) { in testConsistencyNestedNormalReturn()
H A Ddtor.cpp465 namespace NoReturn { namespace
/llvm-project-15.0.7/llvm/unittests/IR/
H A DAttributesTest.cpp66 B.addAttribute(Attribute::NoReturn); in TEST()
68 EXPECT_TRUE(AL.hasFnAttr(Attribute::NoReturn)); in TEST()
73 EXPECT_TRUE(AL.hasFnAttr(Attribute::NoReturn)); in TEST()
204 C1, makeArrayRef(Attribute::get(C1, Attribute::NoReturn))); in TEST()
206 C2, makeArrayRef(Attribute::get(C2, Attribute::NoReturn))); in TEST()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DTargetFrameLoweringImpl.cpp34 assert(MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in enableCalleeSaveSkip()
118 if (MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in determineCalleeSaves()
H A DMachineRegisterInfo.cpp562 return !(Called == nullptr || !Called->hasFnAttribute(Attribute::NoReturn) || in isNoReturnDef()
/llvm-project-15.0.7/llvm/test/TableGen/
H A Dintrin-properties.td10 // RUN: sed -e 's/<PROP>/NoReturn/;s/<ATTR>/NoReturn/' < %s > %t; llvm-tblgen -gen-intrinsic-impl -…
/llvm-project-15.0.7/libc/spec/
H A Dllvm_libc_ext.td29 RetValSpec<NoReturn>,
H A Dstdc.td600 FunctionSpec<"abort", RetValSpec<NoReturn>, [ArgSpec<VoidType>]>,
633 FunctionSpec<"_Exit", RetValSpec<NoReturn>, [ArgSpec<IntType>]>,
634 FunctionSpec<"exit", RetValSpec<NoReturn>, [ArgSpec<IntType>]>,
H A Dspec.td67 def NoReturn : NamedType<"_Noreturn void">;
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DPruneEH.cpp147 if (!SCCMightReturn && !F->hasFnAttribute(Attribute::NoReturn)) { in runImpl()
148 F->addFnAttr(Attribute::NoReturn); in runImpl()
H A DHotColdSplitting.cpp125 if (CI->hasFnAttr(Attribute::NoReturn)) in unlikelyExecuted()
216 if (F.hasFnAttribute(Attribute::NoReturn)) in shouldOutlineFrom()
/llvm-project-15.0.7/clang/include/clang/CodeGen/
H A DCGFunctionInfo.h574 unsigned NoReturn : 1; variable
668 bool isNoReturn() const { return NoReturn; } in isNoReturn()
752 ID.AddBoolean(NoReturn); in Profile()
/llvm-project-15.0.7/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
H A Dp3.cpp212 constexpr int NoReturn() {} // expected-error {{no return statement in constexpr function}} in NoReturn() function
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp561 FnAttrs.removeAttribute(Attribute::NoReturn); in wrapInvoke()
952 ResumeF->addFnAttr(Attribute::NoReturn); in runOnModule()
998 EmLongjmpF->addFnAttr(Attribute::NoReturn); in runOnModule()
1004 WasmLongjmpF->addFnAttr(Attribute::NoReturn); in runOnModule()
1389 bool IsNoReturn = CI->hasFnAttr(Attribute::NoReturn); in runSjLjOnFunction()
1391 IsNoReturn |= CalleeF->hasFnAttribute(Attribute::NoReturn); in runSjLjOnFunction()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDebugInfoFlags.def52 HANDLE_DI_FLAG((1 << 20), NoReturn)
H A DFunction.h545 return hasFnAttribute(Attribute::NoReturn); in doesNotReturn()
548 addFnAttr(Attribute::NoReturn); in setDoesNotReturn()
H A DAttributes.td178 def NoReturn : EnumAttr<"noreturn", [FnAttr]>;
H A DInstrTypes.h1892 bool doesNotReturn() const { return hasFnAttr(Attribute::NoReturn); }
1893 void setDoesNotReturn() { addFnAttr(Attribute::NoReturn); }
/llvm-project-15.0.7/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp58 Attribute::NoReturn, in isValidForDXIL()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCalledOnceCheck.cpp149 NoReturn = 0x0, /* 0000 */ enumerator
1492 PS = ParameterStatus::NoReturn; in markNoReturn()
H A DCFG.cpp2642 bool NoReturn = getFunctionExtInfo(*calleeType).getNoReturn(); in VisitCallExpr() local
2665 NoReturn = true; in VisitCallExpr()
2677 assert(!NoReturn && "noreturn calls with unevaluated args not implemented"); in VisitCallExpr()
2684 if (!NoReturn && !AddEHEdge) { in VisitCallExpr()
2697 if (NoReturn) in VisitCallExpr()
/llvm-project-15.0.7/llvm/bindings/ocaml/debuginfo/
H A Dllvm_debuginfo.ml85 | NoReturn Constructor
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCall.cpp832 FI->NoReturn = info.getNoReturn(); in create()
2079 FuncAttrs.addAttribute(llvm::Attribute::NoReturn); in ConstructAttributeList()
2106 FuncAttrs.addAttribute(llvm::Attribute::NoReturn); in ConstructAttributeList()
2132 FuncAttrs.addAttribute(llvm::Attribute::NoReturn); in ConstructAttributeList()
5422 F->removeFnAttr(llvm::Attribute::NoReturn); in EmitCall()
5423 CI->removeFnAttr(llvm::Attribute::NoReturn); in EmitCall()

12