| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | BranchCloneCheck.cpp | 89 const Stmt *Else = Result.Nodes.getNodeAs<Stmt>("else"); in check() local 90 assert(Else && "We only look for `if` statements with an `else` branch!"); in check() 92 if (!isa<IfStmt>(Else)) { in check() 95 Else->IgnoreContainers(), Context)) { in check() 110 Else = Cur->getElse(); in check() 112 if (!Else) in check() 116 Cur = dyn_cast<IfStmt>(Else); in check() 119 Branches.push_back(Else); in check()
|
| /llvm-project-15.0.7/llvm/test/Transforms/LICM/ |
| H A D | no-preheader-test.ll | 6 br i1 %ifcond, label %Then, label %Else 9 Else: ; preds = %0 11 Loop: ; preds = %Loop, %Else, %Then 12 %j = phi i32 [ 0, %Then ], [ 12, %Else ], [ %Next, %Loop ] ; <i32> [#uses=1]
|
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | DebugSupportTest.cpp | 142 auto Else = cast<AtomicBoolValue>(Ctx.atom()); in TEST() local 143 auto B = Ctx.disj(Ctx.conj(Cond, Ctx.conj(Then, Ctx.neg(Else))), in TEST() 144 Ctx.conj(Ctx.neg(Cond), Ctx.conj(Ctx.neg(Then), Else))); in TEST() 160 EXPECT_THAT(debugString(*B, {{Cond, "Cond"}, {Then, "Then"}, {Else, "Else"}}), in TEST() 369 auto Else = cast<AtomicBoolValue>(Ctx.atom()); in TEST() local 370 auto B = Ctx.disj(Ctx.conj(Cond, Ctx.conj(Then, Ctx.neg(Else))), in TEST() 371 Ctx.conj(Ctx.neg(Cond), Ctx.conj(Ctx.neg(Then), Else))); in TEST() 402 {{Cond, "Cond"}, {Then, "Then"}, {Else, "Else"}}), in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | ElseAfterReturnCheck.cpp | 118 const Stmt *Else, SourceLocation ElseLoc) { in removeElseAndBrackets() argument 127 if (const auto *CS = dyn_cast<CompoundStmt>(Else)) { in removeElseAndBrackets() 141 SourceLocation EndLoc = Remap(Else->getEndLoc()); in removeElseAndBrackets() 241 const auto *Else = Result.Nodes.getNodeAs<Stmt>("else"); in check() local 254 if (!IsLastInScope && containsDeclInScope(Else)) { in check() 290 removeElseAndBrackets(Diag, *Result.Context, Else, ElseLoc); in check() 314 removeElseAndBrackets(Diag, *Result.Context, Else, ElseLoc); in check() 324 removeElseAndBrackets(Diag, *Result.Context, Else, ElseLoc); in check()
|
| H A D | BracesAroundStatementsCheck.cpp | 140 const Stmt *Else = S->getElse(); in check() local 141 if (Else && BracedIf) in check() 142 ForceBracesStmts.insert(Else); in check() 143 if (Else && !isa<IfStmt>(Else)) { in check() 145 checkStmt(Result, Else, S->getElseLoc()); in check()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | MVEVPTBlockPass.cpp | 117 assert(NextPred != ARMVCC::Else && in StepOverPredicatedInstrs() 190 ARMVCC::VPTCodes CurrentPredicate = ARMVCC::Else; in CreateVPTBlock() 237 (CurrentPredicate == ARMVCC::Then ? ARMVCC::Else : ARMVCC::Then); in CreateVPTBlock() 262 assert(Pred != ARMVCC::Else && "VPT block pass does not expect Else preds"); in InsertVPTBlocks()
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | PhiValuesTest.cpp | 35 BasicBlock *Else = BasicBlock::Create(C, "else", F); in TEST() local 37 BranchInst::Create(If, Else, UndefValue::get(I1Ty), Entry); in TEST() 39 BranchInst::Create(Then, Else); in TEST() 48 Phi1->addIncoming(Val2, Else); in TEST() 51 Phi2->addIncoming(Val3, Else); in TEST()
|
| H A D | SparsePropagation.cpp | 379 BasicBlock *Else = BasicBlock::Create(Context, "else", F); in TEST_F() local 383 Builder.CreateCondBr(Cond, Then, Else); in TEST_F() 386 Builder.SetInsertPoint(Else); in TEST_F() 419 BasicBlock *Else = BasicBlock::Create(Context, "else", F); in TEST_F() local 423 Builder.CreateCondBr(Cond, Then, Else); in TEST_F() 426 Builder.SetInsertPoint(Else); in TEST_F()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | load-local-v4i5.ll | 58 br i1 %14, label %Then, label %Else 64 Else: ; preds = %Entry 67 EndIf: ; preds = %Else, %Then
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/Utils/ |
| H A D | ARMBaseInfo.h | 92 Else enumerator 134 case ARMVCC::Else: return "e"; in ARMVPTPredToString() 142 .Case("e", ARMVCC::Else) in ARMVectorCondCodeFromString()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter5/ |
| H A D | toy.cpp | 185 std::unique_ptr<ExprAST> Cond, Then, Else; member in __anon42cfe4710111::IfExprAST 189 std::unique_ptr<ExprAST> Else) in IfExprAST() argument 190 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {} in IfExprAST() 357 auto Else = ParseExpression(); in ParseIfExpr() local 358 if (!Else) in ParseIfExpr() 362 std::move(Else)); in ParseIfExpr() 656 Value *ElseV = Else->codegen(); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter6/ |
| H A D | toy.cpp | 205 std::unique_ptr<ExprAST> Cond, Then, Else; member in __anonb74c55720111::IfExprAST 209 std::unique_ptr<ExprAST> Else) in IfExprAST() argument 210 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {} in IfExprAST() 391 auto Else = ParseExpression(); in ParseIfExpr() local 392 if (!Else) in ParseIfExpr() 396 std::move(Else)); in ParseIfExpr() 768 Value *ElseV = Else->codegen(); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
| H A D | toy.cpp | 208 std::unique_ptr<ExprAST> Cond, Then, Else; member in __anoncef1c7f20111::IfExprAST 212 std::unique_ptr<ExprAST> Else) in IfExprAST() argument 213 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {} in IfExprAST() 408 auto Else = ParseExpression(); in ParseIfExpr() local 409 if (!Else) in ParseIfExpr() 413 std::move(Else)); in ParseIfExpr() 869 Value *ElseV = Else->codegen(); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter8/ |
| H A D | toy.cpp | 214 std::unique_ptr<ExprAST> Cond, Then, Else; member in __anona04537740111::IfExprAST 218 std::unique_ptr<ExprAST> Else) in IfExprAST() argument 219 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {} in IfExprAST() 414 auto Else = ParseExpression(); in ParseIfExpr() local 415 if (!Else) in ParseIfExpr() 419 std::move(Else)); in ParseIfExpr() 874 Value *ElseV = Else->codegen(); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
| H A D | toy.cpp | 206 std::unique_ptr<ExprAST> Cond, Then, Else; member in IfExprAST 210 std::unique_ptr<ExprAST> Else) in IfExprAST() argument 211 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {} in IfExprAST() 391 auto Else = ParseExpression(); in ParseIfExpr() local 392 if (!Else) in ParseIfExpr() 396 std::move(Else)); in ParseIfExpr() 852 Value *ElseV = Else->codegen(); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter7/ |
| H A D | toy.cpp | 213 std::unique_ptr<ExprAST> Cond, Then, Else; member in __anon2bc8c6730111::IfExprAST 217 std::unique_ptr<ExprAST> Else) in IfExprAST() argument 218 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {} in IfExprAST() 413 auto Else = ParseExpression(); in ParseIfExpr() local 414 if (!Else) in ParseIfExpr() 418 std::move(Else)); in ParseIfExpr() 875 Value *ElseV = Else->codegen(); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
| H A D | toy.cpp | 208 std::unique_ptr<ExprAST> Cond, Then, Else; member in __anon436e38f30111::IfExprAST 212 std::unique_ptr<ExprAST> Else) in IfExprAST() argument 213 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {} in IfExprAST() 408 auto Else = ParseExpression(); in ParseIfExpr() local 409 if (!Else) in ParseIfExpr() 413 std::move(Else)); in ParseIfExpr() 869 Value *ElseV = Else->codegen(); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
| H A D | toy.cpp | 208 std::unique_ptr<ExprAST> Cond, Then, Else; member in __anonb7eaa9f40111::IfExprAST 212 std::unique_ptr<ExprAST> Else) in IfExprAST() argument 213 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {} in IfExprAST() 408 auto Else = ParseExpression(); in ParseIfExpr() local 409 if (!Else) in ParseIfExpr() 413 std::move(Else)); in ParseIfExpr() 869 Value *ElseV = Else->codegen(); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter9/ |
| H A D | toy.cpp | 295 std::unique_ptr<ExprAST> Cond, Then, Else; member in __anon14c1a8750211::IfExprAST 299 std::unique_ptr<ExprAST> Then, std::unique_ptr<ExprAST> Else) in IfExprAST() argument 301 Else(std::move(Else)) {} in IfExprAST() 307 Else->dump(indent(out, ind) << "Else:", ind + 1); in dump() 525 auto Else = ParseExpression(); in ParseIfExpr() local 526 if (!Else) in ParseIfExpr() 530 std::move(Else)); in ParseIfExpr() 1043 Value *ElseV = Else->codegen(); in codegen()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/lib/ |
| H A D | DirectiveTree.cpp | 26 enum class Cond { None, If, Else, End }; enumerator 37 return Cond::Else; in classifyDirective() 85 } else if ((Kind == Cond::Else || Kind == Cond::End) && !TopLevel) { in parse() 114 assert(classifyDirective(Terminator->Kind) == Cond::Else && in parseConditional()
|
| /llvm-project-15.0.7/llvm/docs/tutorial/MyFirstLanguageFrontend/ |
| H A D | LangImpl05.rst | 21 If/Then/Else 60 Lexer Extensions for If/Then/Else 91 AST Extensions for If/Then/Else 104 std::unique_ptr<ExprAST> Else) 105 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {} 112 Parser Extensions for If/Then/Else 143 auto Else = ParseExpression(); 144 if (!Else) 170 LLVM IR for If/Then/Else 281 Code Generation for If/Then/Else [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/cached/ |
| H A D | toy-jit.cpp | 182 ExprAST *Cond, *Then, *Else; member in IfExprAST 185 : Cond(cond), Then(then), Else(_else) {} in IfExprAST() 357 ExprAST *Else = ParseExpression(); in ParseIfExpr() local 358 if (!Else) return 0; in ParseIfExpr() 360 return new IfExprAST(Cond, Then, Else); in ParseIfExpr() 769 Value *ElseV = Else->Codegen(); in Codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
| H A D | toy-jit.cpp | 167 ExprAST *Cond, *Then, *Else; member in IfExprAST 170 : Cond(cond), Then(then), Else(_else) {} in IfExprAST() 342 ExprAST *Else = ParseExpression(); in ParseIfExpr() local 343 if (!Else) return 0; in ParseIfExpr() 345 return new IfExprAST(Cond, Then, Else); in ParseIfExpr() 751 Value *ElseV = Else->Codegen(); in Codegen()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | propagate_value_category.hpp | 94 template <bool Pred, class Then, class Else> 95 using CondT = typename std::conditional<Pred, Then, Else>::type;
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | ByteCodeStmtGen.cpp | 208 if (const Stmt *Else = IS->getElse()) { in visitIfStmt() local 218 if (!visitStmt(Else)) in visitIfStmt()
|