| /llvm-project-15.0.7/clang/test/Driver/ |
| H A D | lanai-unknown-unknown.cpp | 72 template<int> void Switch(); 73 template<> void Switch<4>(); 74 template<> void Switch<8>(); 75 template<> void Switch<16>(); 79 Switch<sizeof(void*)>(); in check_pointer_size() 82 Switch<sizeof(long long)>(); in check_pointer_size() 85 Switch<sizeof(va_list)>(); in check_pointer_size()
|
| H A D | wasm32-unknown-unknown.cpp | 105 void Switch(); 107 void Switch<4>(); 109 void Switch<8>(); 111 void Switch<16>(); 115 Switch<sizeof(void *)>(); in check_pointer_size() 118 Switch<sizeof(long long)>(); in check_pointer_size() 121 Switch<sizeof(va_list)>(); in check_pointer_size()
|
| H A D | wasm64-unknown-unknown.cpp | 105 void Switch(); 107 void Switch<4>(); 109 void Switch<8>(); 111 void Switch<16>(); 115 Switch<sizeof(void *)>(); in check_pointer_size() 118 Switch<sizeof(long long)>(); in check_pointer_size() 121 Switch<sizeof(va_list)>(); in check_pointer_size()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/ |
| H A D | MultiwayPathsCoveredCheck.cpp | 51 static std::pair<std::size_t, bool> countCaseLabels(const SwitchStmt *Switch) { in countCaseLabels() argument 55 const SwitchCase *CurrentCase = Switch->getSwitchCaseList(); in countCaseLabels() 98 const auto *Switch = Result.Nodes.getNodeAs<SwitchStmt>("switch"); in check() local 101 std::tie(SwitchCaseCount, SwitchHasDefault) = countCaseLabels(Switch); in check() 106 handleSwitchWithDefault(Switch, SwitchCaseCount); in check() 112 handleSwitchWithoutDefault(Switch, SwitchCaseCount, Result); in check() 120 diag(Switch->getBeginLoc(), in check() 128 const SwitchStmt *Switch, std::size_t CaseCount) { in handleSwitchWithDefault() argument 132 diag(Switch->getBeginLoc(), in handleSwitchWithDefault() 139 const SwitchStmt *Switch, std::size_t CaseCount, in handleSwitchWithoutDefault() argument [all …]
|
| H A D | MultiwayPathsCoveredCheck.h | 34 void handleSwitchWithDefault(const SwitchStmt *Switch, std::size_t CaseCount); 36 const SwitchStmt *Switch, std::size_t CaseCount,
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | PopulateSwitch.cpp | 74 const SwitchStmt *Switch = nullptr; member in clang::clangd::__anona71e2b0a0111::PopulateSwitch 96 Switch = CA->ASTNode.get<SwitchStmt>(); in REGISTER_TWEAK() 97 if (!Switch) { in REGISTER_TWEAK() 99 Switch = Parent->ASTNode.get<SwitchStmt>(); in REGISTER_TWEAK() 100 if (!Switch) in REGISTER_TWEAK() 104 Body = llvm::dyn_cast_or_null<CompoundStmt>(Switch->getBody()); in REGISTER_TWEAK() 110 const Expr *Cond = Switch->getCond(); in REGISTER_TWEAK() 143 for (const SwitchCase *CaseList = Switch->getSwitchCaseList(); CaseList; in REGISTER_TWEAK()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroInternal.h | 51 Switch, enumerator 146 assert(ABI == coro::ABI::Switch); in getSwitchCoroId() 162 assert(ABI == coro::ABI::Switch); in getSwitchIndexField() 167 assert(ABI == coro::ABI::Switch); in getIndexType() 176 assert(ABI == coro::ABI::Switch); in getSwitchResumePointerType() 183 case coro::ABI::Switch: in getResumeFunctionType() 221 case coro::ABI::Switch: in getResumeFunctionCC() 234 if (ABI == coro::ABI::Switch) in getPromiseAlloca()
|
| H A D | CoroSplit.cpp | 235 case coro::ABI::Switch: in replaceFallthroughCoroEnd() 312 case coro::ABI::Switch: { in replaceUnwindCoroEnd() 381 auto *Switch = in createResumeEntryBlock() local 578 case coro::ABI::Switch: in replaceCoroSuspends() 737 case coro::ABI::Switch: { in replaceEntryBlock() 785 case coro::ABI::Switch: in deriveNewFramePointer() 942 case coro::ABI::Switch: in create() 989 case coro::ABI::Switch: in create() 1038 case coro::ABI::Switch: in create() 1393 case coro::ABI::Switch: { in handleNoSuspendCoroutine() [all …]
|
| H A D | Coroutines.cpp | 291 this->ABI = coro::ABI::Switch; in buildFrom() 427 if (ABI == coro::ABI::Switch && in buildFrom() 450 case coro::ABI::Switch: in emitAlloc() 473 case coro::ABI::Switch: in emitDealloc()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | DFAJumpThreading.cpp | 537 : Switch(MSwitch->getInstr()), SwitchBlock(Switch->getParent()), in AllSwitchPaths() 553 Switch) in run() 658 Value *FirstDef = Switch->getOperand(0); in getStateDefMap() 747 SwitchInst *Switch; member 1199 Switch->eraseFromParent(); in updateLastSuccessor() 1251 for (auto Case : Switch->cases()) { in getNextCaseSuccessor() 1258 NextCase = Switch->getDefaultDest(); in getNextCaseSuccessor() 1297 MainSwitch Switch(SI, ORE); in run() local 1299 if (!Switch.getInstr()) in run() 1307 if (!Switch.getSelectInsts().empty()) in run() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/fuzzer/ |
| H A D | SwitchTest.cpp | 15 bool Switch(const uint8_t *Data, size_t Size) { in Switch() function 50 if (Size >= 4 && Switch<int>(Data, Size) && in LLVMFuzzerTestOneInput() 51 Size >= 12 && Switch<uint64_t>(Data + 4, Size - 4) && in LLVMFuzzerTestOneInput()
|
| H A D | Switch2Test.cpp | 12 int Switch(int a) { in Switch() function 28 Res += Switch(X); in LLVMFuzzerTestOneInput()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | TypePromotion.cpp | 256 if (auto *Switch = dyn_cast<SwitchInst>(V)) in isSink() local 257 return LessThanTypeSize(Switch->getCondition()); in isSink() 544 if (auto *Switch = dyn_cast<SwitchInst>(I)) { in TruncateSinks() local 545 Type *Ty = TruncTysMap[Switch][0]; in TruncateSinks() 546 if (Instruction *Trunc = InsertTrunc(Switch->getCondition(), Ty)) { in TruncateSinks() 547 Trunc->moveBefore(Switch); in TruncateSinks() 548 Switch->setCondition(Trunc); in TruncateSinks() 642 } else if (auto *Switch = dyn_cast<SwitchInst>(I)) in Mutate() local 643 TruncTysMap[I].push_back(Switch->getCondition()->getType()); in Mutate() 705 case Instruction::Switch: in isSupportedValue()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGCleanup.cpp | 336 llvm::SwitchInst *Switch, in ResolveAllBranchFixups() argument 364 Switch->addCase(CGF.Builder.getInt32(Fixup.DestinationIndex), in ResolveAllBranchFixups() 384 llvm::SwitchInst *Switch = in TransitionToCleanupSwitch() local 387 return Switch; in TransitionToCleanupSwitch() 606 llvm::SwitchInst *Switch = cast<llvm::SwitchInst>(Term); in ForwardPrebranchedFallthrough() local 608 if (Switch->getSuccessor(I) == From) in ForwardPrebranchedFallthrough() 609 Switch->setSuccessor(I, To); in ForwardPrebranchedFallthrough() 908 llvm::SwitchInst *Switch = in PopCleanupBlock() local 912 InstsToAppend.push_back(Switch); in PopCleanupBlock() 922 Switch->addCase(Scope.getBranchAfterIndex(I), in PopCleanupBlock() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | BranchProbabilityInfoTest.cpp | 73 auto *Switch = SwitchInst::Create(Undef, ExitBB, NumCases, EntryBB); in TEST_F() local 75 Switch->addCase(ConstantInt::get(I32, I), PreExitBB); in TEST_F()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | SourceExtraction.cpp | 43 if(const auto *Switch = dyn_cast<SwitchStmt>(S)) in isSemicolonRequiredAfter() local 44 return isSemicolonRequiredAfter(Switch->getBody()); in isSemicolonRequiredAfter()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-query/ |
| H A D | QueryParser.cpp | 55 StringSwitch<T> Switch; member 66 : Word(P->lexWord()), Switch(Word), P(P), in LexOrCompleteWord() 81 Switch.Case(CaseStr, Value); in Case() 91 T Default(T Value) { return Switch.Default(Value); } in Default()
|
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | MatchSwitchTest.cpp | 218 MatchSwitch<const int, std::vector<int>> Switch = in TEST() local 226 std::vector<int> Actual = Switch(*S, Context, 7); in TEST()
|
| /llvm-project-15.0.7/llvm/test/Transforms/Inline/ |
| H A D | cgscc-cycle-debug.ll | 17 ; CHECK: Switch an internal ref edge to a call edge from 'test1_a' to 'test1_c' 18 ; CHECK: Switch an internal ref edge to a call edge from 'test1_a' to 'test1_a'
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | PredicateInfo.h | 164 SwitchInst *Switch; variable 169 CaseValue(CaseValue), Switch(SI) {} in PredicateSwitch()
|
| /llvm-project-15.0.7/llvm/test/Transforms/Coroutines/ |
| H A D | coro-catchswitch.ll | 36 ; CHECK: cleanupret from %[[Pad]] unwind label %[[Switch:.+]] 38 ; CHECK: [[Switch]]:
|
| /llvm-project-15.0.7/clang/tools/clang-linker-wrapper/ |
| H A D | OffloadWrapper.cpp | 468 auto *Switch = Builder.CreateSwitch(Flags, IfEndBB); in createRegisterGlobalsFunction() local 476 Switch->addCase(Builder.getInt32(OffloadGlobalEntry), SwGlobalBB); in createRegisterGlobalsFunction() 481 Switch->addCase(Builder.getInt32(OffloadGlobalManagedEntry), SwManagedBB); in createRegisterGlobalsFunction() 486 Switch->addCase(Builder.getInt32(OffloadGlobalSurfaceEntry), SwSurfaceBB); in createRegisterGlobalsFunction() 491 Switch->addCase(Builder.getInt32(OffloadGlobalTextureEntry), SwTextureBB); in createRegisterGlobalsFunction()
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/ |
| H A D | CalledOnceCheck.h | 39 Switch, enumerator
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | constexpr-function-recovery-crash.cpp | 88 TEST_EVALUATE(Switch, switch (!!){}); // expected-error + {{}}
|
| H A D | cxx1y-contextual-conversion-tweaks.cpp | 28 void Switch() { in Switch() function
|