Home
last modified time | relevance | path

Searched refs:condition (Results 1 – 25 of 883) sorted by relevance

12345678910>>...36

/llvm-project/lldb/test/API/functionalities/breakpoint/thread_plan_user_breakpoint/
H A DTestThreadPlanUserBreakpoint.py39 def check_correct_stop_reason(self, breakpoint_idx, condition): argument
41 if condition:
62 def check_thread_plan_user_breakpoint(self, condition, set_up_breakpoint_func): argument
64 self.change_breakpoints(lambda bp: set_up_breakpoint_func(condition, bp))
68 self.check_correct_stop_reason(0, condition)
73 self.check_correct_stop_reason(1, condition)
82 set_up_breakpoint_func(condition, step_out_breakpoint)
86 self.check_correct_stop_reason(2, condition)
92 def set_up_breakpoints_condition(self, condition, bp): argument
94 conditionStr = "true" if condition else "false"
[all …]
/llvm-project/openmp/runtime/test/ompt/cancel/
H A Dcancel_taskgroup.c13 int condition=0; in main() local
24 #pragma omp task shared(condition) in main()
27 OMPT_SIGNAL(condition); in main()
28 OMPT_WAIT(condition,2); in main()
32 #pragma omp task shared(condition) in main()
35 OMPT_SIGNAL(condition); in main()
36 OMPT_WAIT(condition,2); in main()
40 #pragma omp task shared(condition) in main()
43 OMPT_SIGNAL(condition); in main()
44 OMPT_WAIT(condition,2); in main()
[all …]
H A Dcancel_worksharing.c11 int condition=0; in main() local
22 OMPT_SIGNAL(condition); in main()
28 OMPT_WAIT(condition,1); in main()
40 OMPT_SIGNAL(condition); in main()
45 OMPT_WAIT(condition,2); in main()
/llvm-project/clang/test/Analysis/
H A Dcfref_rdar6080742.c33 void DebugTraceIf(unsigned int condition, const char *format,...);
36 #define Assert(condition)if (!(condition)) { DebugStop("Assertion failure: %s [File: %s, Line: %lu]… argument
37 #define AssertMsg(condition, message)if (!(condition)) { DebugStop("Assertion failure: %s (%s) [Fil… argument
38 #define Require(condition)if (!(condition)) { DebugStop("Assertion failure: %s [File: %s, Line: %lu… argument
39 #define RequireAction(condition, action)if (!(condition)) { DebugStop("Assertion failure: %s [File:… argument
40 #define RequireActionSilent(condition, action)if (!(condition)) { action } argument
H A Dgtest.cpp124 #define EXPECT_TRUE(condition) \ argument
125 GTEST_TEST_BOOLEAN_((condition), #condition, false, true, \
127 #define ASSERT_TRUE(condition) \ argument
128 GTEST_TEST_BOOLEAN_((condition), #condition, false, true, \
131 #define ASSERT_FALSE(condition) \ argument
132 GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dspuriously-wake-up-functions.cpp116 static std::condition_variable condition; variable
118 void consume_list_element(std::condition_variable &condition) { in consume_list_element() argument
122 condition.wait(lk); in consume_list_element()
127 condition.wait(lk); in consume_list_element()
131 condition.wait(lk); in consume_list_element()
135 condition.wait(lk); in consume_list_element()
140 condition.wait(lk); in consume_list_element()
146 condition.wait(lk); in consume_list_element()
152 condition.wait(lk); in consume_list_element()
158 condition.wait_for(lk, dur); in consume_list_element()
[all …]
H A Dassert-side-effect.m18 #define NSAssert(condition, description, ...) \
20 if (__builtin_expect(!(condition), 0)) { \
26 #define NSCAssert(condition, description, ...) \
28 if (__builtin_expect(!(condition), 0)) { \
33 #define NSAssert(condition, description, ...) do {} while (0)
34 #define NSCAssert(condition, description, ...) do {} while (0)
45 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: side effect in NSAssert() condition discarded in relea…
52 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: side effect in NSCAssert() condition discarded in rele…
/llvm-project/llvm/test/Transforms/InstCombine/
H A Dwidenable-conditions.ll9 ; CHECK-NEXT: [[WC:%.*]] = call i1 @llvm.experimental.widenable.condition()
14 %wc = call i1 @llvm.experimental.widenable.condition()
22 ; CHECK-NEXT: [[WC:%.*]] = call i1 @llvm.experimental.widenable.condition()
27 %wc = call i1 @llvm.experimental.widenable.condition()
36 ; CHECK-NEXT: [[WC:%.*]] = call i1 @llvm.experimental.widenable.condition()
42 %wc = call i1 @llvm.experimental.widenable.condition()
51 ; CHECK-NEXT: [[WC:%.*]] = call i1 @llvm.experimental.widenable.condition()
57 %wc = call i1 @llvm.experimental.widenable.condition()
69 ; CHECK-NEXT: [[WC:%.*]] = call i1 @llvm.experimental.widenable.condition()
77 %wc = call i1 @llvm.experimental.widenable.condition()
[all...]
/llvm-project/llvm/test/MC/ARM/
H A Dthumb-invalid-crypto.txt5 @ CHECK: error: instruction 'aesd' is not predicable, but condition code specified
7 @ CHECK: error: instruction 'aesimc' is not predicable, but condition code specified
9 @ CHECK: error: instruction 'aesmc' is not predicable, but condition code specified
11 @ CHECK: error: instruction 'aese' is not predicable, but condition code specified
15 @ CHECK: error: instruction 'sha1h' is not predicable, but condition code specified
17 @ CHECK: error: instruction 'sha1su1' is not predicable, but condition code specified
19 @ CHECK: error: instruction 'sha256su0' is not predicable, but condition code specified
23 @ CHECK: error: instruction 'sha1c' is not predicable, but condition code specified
25 @ CHECK: error: instruction 'sha1m' is not predicable, but condition code specified
27 @ CHECK: error: instruction 'sha1p' is not predicable, but condition code specified
[all …]
H A Dinvalid-crc32.s11 @ CHECK: error: instruction 'crc32cb' is not predicable, but condition code specified
12 @ CHECK: error: instruction 'crc32b' is not predicable, but condition code specified
13 @ CHECK: error: instruction 'crc32ch' is not predicable, but condition code specified
14 @ CHECK: error: instruction 'crc32h' is not predicable, but condition code specified
15 @ CHECK: error: instruction 'crc32cw' is not predicable, but condition code specified
16 @ CHECK: error: instruction 'crc32w' is not predicable, but condition code specified
/llvm-project/libunwind/cmake/Modules/
H A DHandleLibunwindFlags.cmake20 # If 'condition' is true then add the specified list of flags to
22 macro(add_compile_flags_if condition)
23 if (${condition})
45 # If 'condition' is true then add the specified list of flags to
47 macro(add_c_flags_if condition)
48 if (${condition})
60 # If 'condition' is true then add the specified list of flags to
62 macro(add_cxx_flags_if condition)
63 if (${condition})
85 # If 'condition' is true then add the specified list of flags to
[all …]
/llvm-project/runtimes/cmake/Modules/
H A DHandleFlags.cmake49 # If the specified 'condition' is true then append the specified list of flags to DEST
50 macro(append_flags_if condition DEST)
51 if (${condition})
65 # Add a macro definition if condition is true.
66 macro(define_if condition def)
67 if (${condition})
72 # Add a macro definition if condition is not true.
73 macro(define_if_not condition def)
74 if (NOT ${condition})
79 # Add a macro definition to the __config_site file if the specified condition
[all...]
/llvm-project/openmp/runtime/test/ompt/tasks/
H A Dtaskyield.c12 int condition=0, x=0; in main() local
17 #pragma omp task shared(condition) in main()
19 OMPT_SIGNAL(condition); in main()
20 OMPT_WAIT(condition,2); in main()
22 OMPT_WAIT(condition,1); in main()
30 OMPT_SIGNAL(condition); in main()
/llvm-project/libcxx/test/tools/clang_tidy_checks/
H A Dproper_version_checks.cpp35 std::string_view condition = clang::Lexer::getSourceText( in check_condition() local
42 if (condition == "__cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)") in check_condition()
45 if (condition.starts_with("_LIBCPP_STD_VER") && condition.find(">") != std::string_view::npos && in check_condition()
46 condition.find(">=") == std::string_view::npos) in check_condition()
49 else if (condition.starts_with("__cplusplus")) in check_condition()
52 else if (condition == "_LIBCPP_STD_VER >= 11") in check_condition()
55 else if (condition.starts_with("_LIBCPP_STD_VER >= ") && in check_condition()
57 return condition.find(val) != std::string_view::npos; in check_condition()
/llvm-project/llvm/test/Analysis/ScalarEvolution/
H A Dinfer-prestart-no-wrap.ll39 %condition = icmp eq i32 %counter, 1
41 br i1 %condition, label %exit, label %loop
82 %condition = icmp eq i32 %counter, 1
84 br i1 %condition, label %exit, label %loop
103 ; CHECK-NEXT: %condition = load i1, ptr %c, align 1
104 ; CHECK-NEXT: --> %condition U: full-set S: full-set Exits: <<Unknown>> LoopDispositions: { %loop: Variant }
119 %condition = load i1, ptr %c
120 br i1 %condition, label %exit, label %loop
137 ; CHECK-NEXT: %condition = load volatile i1, ptr %c, align 1
138 ; CHECK-NEXT: --> %condition
[all...]
/llvm-project/libcxxabi/cmake/Modules/
H A DHandleLibcxxabiFlags.cmake21 # If the specified 'condition' is true then add a list of flags to both
23 macro(add_flags_if condition)
24 if (${condition})
46 # If 'condition' is true then add the specified list of flags to
48 macro(add_compile_flags_if condition)
49 if (${condition})
81 # If 'condition' is true then add the specified list of flags to
83 macro(add_link_flags_if condition)
84 if (${condition})
106 # if 'condition' is true then add the specified list of libraries and flags
[all …]
/llvm-project/llvm/test/Transforms/GuardWidening/
H A Dmixed_guards.ll5 ; Interaction between intrinsic and widenable condition guards.
12 declare i1 @llvm.experimental.widenable.condition() #0
14 ; Widen condition of intrinsic guard with a condition from widenable branch.
21 ; CHECK-NEXT: [[WIDENABLE_COND3:%.*]] = call i1 @llvm.experimental.widenable.condition()
32 %widenable_cond3 = call i1 @llvm.experimental.widenable.condition()
44 ; Widen condition of widenable condition guard with a condition from intrinsic.
50 ; CHECK-NEXT: [[WIDENABLE_COND:%.*]] = call i1 @llvm.experimental.widenable.condition()
60 %widenable_cond = call i1 @llvm.experimental.widenable.condition()
H A Dbasic_widenable_condition_guards.ll12 ; CHECK-NEXT: [[WIDENABLE_COND:%.*]] = call i1 @llvm.experimental.widenable.condition()
19 ; CHECK-NEXT: [[WIDENABLE_COND3:%.*]] = call i1 @llvm.experimental.widenable.condition()
29 %widenable_cond = call i1 @llvm.experimental.widenable.condition()
38 %widenable_cond3 = call i1 @llvm.experimental.widenable.condition()
56 ; CHECK-NEXT: [[WIDENABLE_COND:%.*]] = call i1 @llvm.experimental.widenable.condition()
69 ; CHECK-NEXT: [[WIDENABLE_COND3:%.*]] = call i1 @llvm.experimental.widenable.condition()
79 %widenable_cond = call i1 @llvm.experimental.widenable.condition()
97 %widenable_cond3 = call i1 @llvm.experimental.widenable.condition()
118 ; CHECK-NEXT: [[WIDENABLE_COND:%.*]] = call i1 @llvm.experimental.widenable.condition()
131 ; CHECK-NEXT: [[WIDENABLE_COND3:%.*]] = call i1 @llvm.experimental.widenable.condition()
[all...]
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dredundant-branch-condition.rst1 .. title:: clang-tidy - bugprone-redundant-branch-condition
3 bugprone-redundant-branch-condition
6 Finds condition variables in nested ``if`` statements that were also checked in
23 The checker also detects redundant condition checks if the condition variable
43 condition variable and keep the other side of the ``&&``. In the second case
47 The condition of the outer ``if`` statement may also be a logical "and" (``&&``)
65 No error is detected if the condition variable may have been changed between the
77 Every possible change is considered, thus if the condition variable is not
84 The ``else`` branch is not checked currently for negated condition variable:
97 The checker currently only detects redundant checking of single condition
H A Dinc-dec-in-conditions.rst7 complex condition and suggests moving them outside to avoid ambiguity in the
10 When a variable is modified and also used in a complex condition, it can lead to
12 condition can make the code difficult to reason about. Additionally, the
15 problematic when the condition involves logical operators like ``&&`` and
30 after the entire condition is evaluated, but in reality, i will be incremented
33 operation from the condition and perform it separately. For example, they can
34 increment ``i`` in a separate statement before or after the condition is
48 on the same variable inside a complex condition. For example:
59 The ``||`` operator used in the condition statement guarantees that if the first
67 ``i`` should be moved outside the condition statement.
/llvm-project/cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/
H A DDefaultController.py55 condition = EarlyExitCondition(
61 early_exit_conditions.append(condition)
65 for condition in early_exit_conditions:
66 if condition.on_line == line_no:
67 exit_condition_hit = condition.expression is None
68 if condition.expression is not None:
72 for value in condition.values:
80 if condition.hit_count <= 0:
83 condition.hit_count -= 1
/llvm-project/openmp/runtime/test/ompt/misc/
H A Dinteroperability.cpp15 int condition = 0; variable
26 OMPT_SIGNAL(condition); in f()
29 OMPT_WAIT(condition, 2); in f()
34 OMPT_SIGNAL(condition); in f()
35 OMPT_WAIT(condition, 6); in f()
/llvm-project/lldb/tools/lldb-dap/
H A DBreakpointBase.cpp16 : dap(d), condition(std::string(GetString(obj, "condition"))), in BreakpointBase()
20 if (condition != request_bp.condition) { in UpdateBreakpoint()
21 condition = request_bp.condition; in UpdateBreakpoint()
/llvm-project/libcxx/test/support/
H A Dassert_macros.h41 void test_log(const char* condition, const char* file, int line, const char* message) { in test_log() argument
42 const char* msg = condition ? "Assertion failure: " : "Unconditional failure:"; in test_log()
43 test_eprintf("%s%s %s %d\n%s", msg, condition, file, line, message); in test_log()
47 void test_log(const char* condition, const char* file, int line, const F& functor) { in test_log() argument
48 test_eprintf("Assertion failure: %s %s %d\n", condition, file, line); in test_log()
59 void test_require(bool condition, const char* condition_str, const char* file, int line, const Arg& arg) { in test_require() argument
60 if (condition) in test_require()
/llvm-project/mlir/test/Dialect/SCF/
H A Done-shot-bufferize-tensor-copy-insertion.mlir59 // CHECK: %[[condition:.*]] = tensor.extract %[[w0]]
60 %condition = tensor.extract %w0[%idx] : tensor<5xi1>
62 // CHECK: scf.condition(%[[condition]]) %[[w0]], %[[w1]]
63 scf.condition(%condition) %w0, %w1 : tensor<5xi1>, tensor<5xi1>
90 // CHECK: %[[condition:.*]] = tensor.extract %[[w0]]
91 %condition = tensor.extract %w0[%idx] : tensor<5xi1>
95 // CHECK: scf.condition(%[[condition]]) %[[yield0]], %[[yield1]]
96 scf.condition(%condition) %w1, %w0 : tensor<5xi1>, tensor<5xi1>

12345678910>>...36