Home
last modified time | relevance | path

Searched full:else (Results 1 – 25 of 7815) sorted by relevance

12345678910>>...313

/llvm-project/lldb/include/lldb/
H A Dlldb-versioning.h69 if LLDB_API_MINOR_VERSION_WANTED >= x then all is well, else you will get a
76 else all is well
233 #else
239 #else
244 #else
250 #else
255 #else
261 #else
266 #else
272 #else
[all …]
/llvm-project/clang-tools-extra/clangd/quality/model/
H A Dforest.json25 "else": { object
33 "else": { object
45 "else": { object
50 "else": { object
57 "else": { object
62 "else": { object
74 "else": { object
86 "else": { object
91 "else": { object
97 "else": { object
[all …]
/llvm-project/compiler-rt/utils/
H A Dgenerate_netbsd_syscalls.awk73 } else {
95 # preserve 'if/elif/else/endif' C preprocessor as-is
99 } else {
139 } else {
156 } else {
159 } else {
174 } else {
193 } else {
292 } else {
298 } else {
[all …]
H A Dgenerate_netbsd_ioctls.awk221 } else if (a3 ~ /_IOR[ ]*$/) {
223 } else if (a3 ~ /_IOW[ ]*$/) {
225 } else if (a3 ~ /_IOWR[ ]*$/) {
227 } else {
328 } else {
376 pcmd(" else")
381 pcmd(" else")
482 } else if (string == "unsigned int" || string == "u_int" || string == "uint") {
484 } else if (string == "long") {
486 } else if (string == "unsigned long" || string == "u_long") {
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Delse-after-return.cpp1 // RUN: %check_clang_tidy %s readability-else-after-return %t -- -- -fexceptions -std=c++17
17 else // comment-0 in f()
18 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: do not use 'else' after 'return' in f()
24 } else { // comment-1 in f()
25 // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: do not use 'else' after 'return' in f()
34 } else { in f()
40 else if (a > 10) in f()
42 else // comment-2 in f()
49 else // comment-3 in f()
52 else in f()
[all …]
H A Dmisleading-indentation.cpp22 else in f()
24 …[[@LINE-2]]:3: warning: different indentation for 'if' and corresponding 'else' [readability-misle… in f()
30 else in f()
36 else in f()
57 if (cond1) foo1(); else foo2(); in f()
60 } else { in f()
65 else { in f()
71 else in f()
78 else in f()
84 else if (cond2) { in f()
[all …]
/llvm-project/libc/include/llvm-libc-macros/
H A Dstdfix-macros.h28 #else
34 #else
40 #else
46 #else
52 #else
60 #else
66 #else
72 #else
78 #else
84 #else
[all …]
/llvm-project/llvm/test/Analysis/BranchProbabilityInfo/
H A Dlibfunc_call.ll20 br i1 %cond, label %then, label %else
22 ; CHECK: edge %entry -> %else probability is 0x50000000 / 0x80000000 = 62.50%
28 else:
30 ; CHECK: edge %else -> %exit probability is 0x80000000 / 0x80000000 = 100.00% [HOT edge]
33 %result = phi i32 [ 0, %then ], [ 1, %else ]
42 br i1 %cond, label %then, label %else
44 ; CHECK: edge %entry -> %else probability is 0x50000000 / 0x80000000 = 62.50%
50 else:
52 ; CHECK: edge %else -> %exit probability is 0x80000000 / 0x80000000 = 100.00% [HOT edge]
55 %result = phi i32 [ 0, %then ], [ 1, %else ]
[all …]
/llvm-project/clang/unittests/Format/
H A DBracesRemoverTest.cpp26 // statement-bodies-of-if-else-loop-statements". in TEST_F()
32 "else if (isa<VarDecl>(D))\n" in TEST_F()
36 "} else if (isa<VarDecl>(D)) {\n" in TEST_F()
54 // Use braces on the outer `if` to avoid a potential dangling `else` in TEST_F()
67 // Use braces for the `if` block to keep it uniform with the `else` block. in TEST_F()
70 "} else {\n" in TEST_F()
71 " // In this `else` case, it is necessary that we explain the\n" in TEST_F()
128 // compiler would warn: `add explicit braces to avoid dangling else` in TEST_F()
132 " else\n" in TEST_F()
138 " } else {\n" in TEST_F()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dbranch-clone.cpp5 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic1()
7 else in test_basic1()
8 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_basic1()
16 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic2()
19 else { in test_basic2()
20 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_basic2()
29 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic3()
32 else in test_basic3()
33 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_basic3()
43 else { in test_basic4()
[all …]
/llvm-project/llvm/test/Transforms/CodeGenPrepare/ARM/
H A Dbranch-on-zero.ll12 ; CHECK-NEXT: br i1 [[TMP0]], label [[THEN:%.*]], label [[ELSE:%.*]]
15 ; CHECK: else:
20 br i1 %c, label %then, label %else
25 else:
35 ; CHECK-NEXT: br i1 [[TMP0]], label [[THEN:%.*]], label [[ELSE:%.*]]
38 ; CHECK: else:
43 br i1 %c, label %then, label %else
49 else:
58 ; CHECK-NEXT: br i1 [[TMP0]], label [[THEN:%.*]], label [[ELSE:%.*]]
61 ; CHECK: else:
[all …]
H A Dsink-addrmode.ll30 ; CHECK-NOT: phi ptr [ %gep1, %if.then ], [ %gep2, %if.else ]
31 ; CHECK: phi i32 [ 8, %if.else ], [ 4, %if.then ]
34 br i1 %cmp, label %if.then, label %if.else
40 if.else:
45 %phi = phi ptr [ %gep1, %if.then ], [ %gep2, %if.else ]
72 ; CHECK-NOT: phi ptr [ %gep1, %if.then ], [ %gep2, %if.else ]
73 ; CHECK: phi i32 [ %off2, %if.else ], [ %off1, %if.then ]
76 br i1 %cmp, label %if.then, label %if.else
82 if.else:
87 %phi = phi ptr [ %gep1, %if.then ], [ %gep2, %if.else ]
[all …]
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform.h30 #else
36 #else
42 #else
48 #else
54 #else
70 # else
75 # else
80 # else
85 # else
90 # else
[all...]
/llvm-project/mlir/test/Dialect/Func/
H A Dduplicate-function-elimination.mlir69 func.func @ite(%pred: i1, %then: f32, %else: f32) -> f32 {
72 } else {
73 scf.yield %else : f32
78 func.func @also_ite(%pred: i1, %then: f32, %else: f32) -> f32 {
81 } else {
82 scf.yield %else : f32
87 func.func @reverse_ite(%pred: i1, %then: f32, %else: f32) -> f32 {
89 scf.yield %else : f32
90 } else {
119 } else {
[all...]
/llvm-project/clang/test/Parser/
H A Dwarn-dangling-else.cpp1 // RUN: %clang_cc1 -fsyntax-only -verify -Wdangling-else %s
6 …{ if (a) if (b) d++; else e++; } // expected-warning {{add explicit braces to avoid dangling else}} in f()
7 …{ if (a) while (b) if (c) d++; else e++; } // expected-warning {{add explicit braces to avoid dang… in f()
8 …{ if (a) switch (b) if (c) d++; else e++; } // expected-warning {{add explicit braces to avoid dan… in f()
9 …{ if (a) for (;;) if (c) d++; else e++; } // expected-warning {{add explicit braces to avoid dangl… in f()
10 …{ if (a) if (b) if (d) d++; else e++; else d--; } // expected-warning {{add explicit braces to avo… in f()
15 } else e++; // expected-warning {{add explicit braces to avoid dangling else}} in f()
20 { if (a) if (b) d++; else e++; else d--; } in f()
21 { if (a) if (b) if (d) d++; else e++; else d--; else e--; } in f()
22 { if (a) do if (b) d++; else e++; while (c); } in f()
[all …]
/llvm-project/clang/test/Lexer/
H A Dhas_feature_cxx0x.cpp9 #else
20 #else
32 #else
44 #else
56 #else
68 #else
80 #else
92 #else
104 #else
115 #else
[all …]
/llvm-project/llvm/test/CodeGen/LoongArch/
H A Dfloat-br-fcmp.ll12 ; LA32-NEXT: # %bb.1: # %if.else
23 ; LA64-NEXT: # %bb.1: # %if.else
30 br i1 %1, label %if.then, label %if.else
31 if.else:
43 ; LA32-NEXT: # %bb.1: # %if.else
54 ; LA64-NEXT: # %bb.1: # %if.else
61 br i1 %1, label %if.then, label %if.else
65 if.else:
74 ; LA32-NEXT: # %bb.1: # %if.else
85 ; LA64-NEXT: # %bb.1: # %if.else
[all …]
H A Ddouble-br-fcmp.ll12 ; LA32-NEXT: # %bb.1: # %if.else
23 ; LA64-NEXT: # %bb.1: # %if.else
30 br i1 %1, label %if.then, label %if.else
31 if.else:
43 ; LA32-NEXT: # %bb.1: # %if.else
54 ; LA64-NEXT: # %bb.1: # %if.else
61 br i1 %1, label %if.then, label %if.else
65 if.else:
74 ; LA32-NEXT: # %bb.1: # %if.else
85 ; LA64-NEXT: # %bb.1: # %if.else
[all …]
/llvm-project/llvm/test/Transforms/SimplifyCFG/
H A D2005-06-16-PHICrash.ll11 br i1 %tmp.3, label %else.0, label %then.0
14 br i1 %tmp.5, label %else.1, label %then.1
17 else.1: ; preds = %then.0
19 loopentry.0: ; preds = %no_exit.0, %else.1
20 %i.0.1 = phi i32 [ 0, %else.1 ], [ %inc.0, %no_exit.0 ] ; <i32> [#uses=2]
26 else.0: ; preds = %entry
43 br i1 %mem_tmp.0, label %then.2, label %else.2
47 else.2: ; preds = %cond_continue
49 loopentry.1: ; preds = %endif.3, %else.2
50 %i.1.1 = phi i32 [ 0, %else.2 ], [ %inc.3, %endif.3 ] ; <i32> [#uses=2]
[all …]
/llvm-project/llvm/test/CodeGen/RISCV/
H A Ddouble-br-fcmp.ll21 ; RV32IFD-NEXT: .LBB0_2: # %if.else
32 ; RV64IFD-NEXT: .LBB0_2: # %if.else
43 ; RV32IZFINXZDINX-NEXT: .LBB0_2: # %if.else
54 ; RV64IZFINXZDINX-NEXT: .LBB0_2: # %if.else
59 br i1 %1, label %if.then, label %if.else
62 if.else:
72 ; RV32IFD-NEXT: # %bb.1: # %if.else
83 ; RV64IFD-NEXT: # %bb.1: # %if.else
94 ; RV32IZFINXZDINX-NEXT: # %bb.1: # %if.else
105 ; RV64IZFINXZDINX-NEXT: # %bb.1: # %if.else
[all …]
/llvm-project/llvm/test/CodeGen/PowerPC/
H A Dcmp_elimination.ll14 br i1 %cmp, label %if.then, label %if.else
20 if.else:
40 br i1 %cmp, label %if.then, label %if.else
46 if.else:
66 br i1 %cmp, label %if.then, label %if.else
72 if.else:
92 br i1 %cmp, label %if.then, label %if.else
98 if.else:
118 br i1 %cmp, label %if.then, label %if.else
124 if.else:
[all …]
/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRELFStreamer.cpp16 else if (Features[AVR::ELFArchAVR2]) in getEFlagsForFeatureSet()
18 else if (Features[AVR::ELFArchAVR25]) in getEFlagsForFeatureSet()
20 else if (Features[AVR::ELFArchAVR3]) in getEFlagsForFeatureSet()
22 else if (Features[AVR::ELFArchAVR31]) in getEFlagsForFeatureSet()
24 else if (Features[AVR::ELFArchAVR35]) in getEFlagsForFeatureSet()
26 else if (Features[AVR::ELFArchAVR4]) in getEFlagsForFeatureSet()
28 else if (Features[AVR::ELFArchAVR5]) in getEFlagsForFeatureSet()
30 else if (Features[AVR::ELFArchAVR51]) in getEFlagsForFeatureSet()
32 else if (Features[AVR::ELFArchAVR6]) in getEFlagsForFeatureSet()
34 else i in getEFlagsForFeatureSet()
[all...]
/llvm-project/libcxx/include/__chrono/
H A Dformatter.h119 else in __format_sub_seconds()
140 else in __use_fraction()
160 else if constexpr (__is_specialization_v<_Tp, chrono::zoned_time>) in __format_year()
163 else if constexpr (chrono::__is_duration_v<_Tp>) in __format_year()
165 else if constexpr (__is_hh_mm_ss<_Tp>) in __format_year()
167 else
208 } else {
235 else if constexpr (__is_specialization_v<_Tp, chrono::zoned_time>) in __format_chrono_using_chrono_specs()
238 else in __format_chrono_using_chrono_specs()
271 else in __format_chrono_using_chrono_specs()
[all...]
/llvm-project/flang/include/flang/Optimizer/Support/
H A DUtils.h90 else if (type.isBF16()) in mlirTypeToIntrinsicFortran()
92 else if (type.isF32()) in mlirTypeToIntrinsicFortran()
94 else if (type.isF64()) in mlirTypeToIntrinsicFortran()
96 else if (type.isF80()) in mlirTypeToIntrinsicFortran()
98 else if (type.isF128()) in mlirTypeToIntrinsicFortran()
110 } else if (auto cplxTy = mlir::dyn_cast<mlir::ComplexType>(type)) { in mlirTypeToIntrinsicFortran()
113 } else if (type.isUnsignedInteger()) { in mlirTypeToIntrinsicFortran()
116 else if (type.isInteger(16)) in mlirTypeToIntrinsicFortran()
118 else if (type.isInteger(32)) in mlirTypeToIntrinsicFortran()
120 else i in mlirTypeToIntrinsicFortran()
[all...]
/llvm-project/llvm/utils/gn/secondary/llvm/lib/Target/
H A Dtargets.gni37 } else if (host_cpu == "arm") {
39 } else if (host_cpu == "ppc" || host_cpu == "ppc64") {
41 } else if (host_cpu == "x86" || host_cpu == "x64") {
43 } else {
49 } else if (llvm_targets_to_build == "all") {
51 } else if (llvm_targets_to_build == "experimental") {
76 } else if (target == "AMDGPU") {
78 } else if (target == "ARM") {
80 } else if (target == "BPF") {
82 } else if (target == "LoongArch") {
[all …]

12345678910>>...313