Home
last modified time | relevance | path

Searched refs:cond (Results 1 - 25 of 56) sorted by relevance

123

/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
H A Dgraph_checker_macros.h22 #define CHECKER_ASSERT(cond) ASSERT((cond))
29 #define CHECKER_DO_IF_NOT(cond, func) ASSERT_DO((cond), func)
32 #define CHECKER_DO_IF_NOT_VISITOR_INTERNAL(visitor, klass, cond, func) ASSERT_DO((cond), func)
35 #define CHECKER_DO_IF_NOT_AND_PRINT(cond, func) ASSERT_DO((cond), func; PrintFailedMethodAndPass();)
37 #define CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(visitor, cond, func) \
38 ASSERT_DO((cond), fun
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
H A Dmpl_logging.h147 void EmitErrorMessage(const std::string &cond, const std::string &file, unsigned int line, const char *fmt,
202 #define CHECK(cond, fmt, ...) \
204 if (!(cond)) { \
205 logInfo.EmitErrorMessage(#cond, __FILE_NAME__, __LINE__, fmt "\n", ##__VA_ARGS__); \
209 #define CHECK(cond, fmt, ...) \
211 if (!(cond)) {} \
218 #define DCHECK(cond, fmt, ...) \
220 DEBUG_STMT(CHECK(cond, fmt, ##__VA_ARGS__)); \
231 #define CHECK_FATAL(cond, fmt, ...) \
233 if (!(cond)) { \
[all...]
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/futex/
H A Dfmutex.cpp334 void ConditionVariableInit(struct CondVar *const cond) in ConditionVariableInit() argument
336 ATOMIC_STORE(&cond->mutexPtr, nullptr, memory_order_relaxed); in ConditionVariableInit()
337 cond->cond = 0; in ConditionVariableInit()
338 cond->waiters = 0; in ConditionVariableInit()
341 void ConditionVariableDestroy(struct CondVar *const cond) in ConditionVariableDestroy() argument
347 if (ATOMIC_LOAD(&cond->waiters, memory_order_relaxed) != 0) { in ConditionVariableDestroy()
359 return reinterpret_cast<int *>(&v->cond); in GetCondAddr()
380 void Wait(struct CondVar *const cond, struct fmutex *const m) in Wait() argument
392 while (!ATOMIC_CAS_WEAK(&cond in Wait()
426 TimedWait(struct CondVar *const cond, struct fmutex *const m, uint64_t ms, uint64_t ns, bool isAbsolute) TimedWait() argument
489 SignalCount(struct CondVar *const cond, int32_t toWake) SignalCount() argument
[all...]
H A Dfmutex.h123 ATOMIC(int32_t) cond; member
127 __attribute__((visibility("default"))) void ConditionVariableInit(struct CondVar *const cond);
128 __attribute__((visibility("default"))) void ConditionVariableDestroy(struct CondVar *const cond);
129 __attribute__((visibility("default"))) void SignalCount(struct CondVar *const cond, int32_t toWake);
130 __attribute__((visibility("default"))) void Wait(struct CondVar *const cond, struct fmutex *const m);
131 __attribute__((visibility("default"))) bool TimedWait(struct CondVar *cond, struct fmutex *m, uint64_t ms, uint64_t ns,
/arkcompiler/runtime_core/static_core/libpandabase/
H A Dmacros.h173 #define ASSERT(cond) \
174 if (UNLIKELY(!(cond))) { \
175 ASSERT_FAIL(#cond); \
179 #define ASSERT_DO(cond, func) \
181 if (auto cond_val = cond; UNLIKELY(!(cond_val))) { \
183 ASSERT_FAIL(#cond); \
187 #define ASSERT_PRINT(cond, message) \
189 if (auto cond_val = cond; UNLIKELY(!(cond_val))) { \
191 ASSERT_FAIL(#cond); \
195 #define ASSERT_RETURN(cond) asser
[all...]
/arkcompiler/runtime_core/libpandabase/
H A Dmacros.h195 #define ASSERT(cond) \
196 if (UNLIKELY(!(cond))) { \
197 ASSERT_FAIL(#cond); \
201 #define ASSERT_DO(cond, func) \
203 if (auto cond_val = cond; UNLIKELY(!(cond_val))) { \
205 ASSERT_FAIL(#cond); \
209 #define ASSERT_PRINT(cond, message) \
211 if (auto cond_val = cond; UNLIKELY(!(cond_val))) { \
213 ASSERT_FAIL(#cond); \
217 #define ASSERT_RETURN(cond) asser
[all...]
/arkcompiler/runtime_core/static_core/irtoc/lang/
H A Dcpp_function.rb27 def condition(cond)
28 @current_variant.cond = cond
61 next if variant.cond == :default
62 Output.scoped_puts "if (#{variant.cond}) {" do
66 defaults = @variants.select { |x| x.cond == :default }
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dfutex_test.cpp201 bool cond = false; in TEST() local
205 cond = g_global == 1; in TEST()
208 } while (!cond); in TEST()
249 bool cond = false; in TEST() local
253 cond = g_global == NUM; in TEST()
256 } while (!cond); in TEST()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Darray_bounds_check_elimination.h152 void ProcessIf(IntegerStack &pushed, GateRegion *parent, OpCode cond);
158 GateRef Predicate(GateRef left, TypedBinOp cond, GateRef right);
159 GateRef PredicateCmpWithConst(GateRef left, TypedBinOp cond, int right);
160 GateRef PredicateAdd(GateRef left, int leftConst, TypedBinOp cond, GateRef right);
161 GateRef PredicateAddCmpWithConst(GateRef left, int leftConst, TypedBinOp cond, int right);
H A Darray_bounds_check_elimination.cpp641 GateRef ArrayBoundsCheckElimination::Predicate(GateRef left, TypedBinOp cond, GateRef right) in Predicate() argument
643 return builder_.InsertRangeCheckPredicate(left, cond, right); in Predicate()
646 GateRef ArrayBoundsCheckElimination::PredicateCmpWithConst(GateRef left, TypedBinOp cond, int32_t right) in PredicateCmpWithConst() argument
649 return Predicate(left, cond, constGate); in PredicateCmpWithConst()
652 GateRef ArrayBoundsCheckElimination::PredicateAdd(GateRef left, int32_t leftConst, TypedBinOp cond, GateRef right) in PredicateAdd() argument
656 return Predicate(binaryOpGate, cond, right); in PredicateAdd()
660 TypedBinOp cond, int32_t right) in PredicateAddCmpWithConst()
663 return PredicateAdd(left, leftConst, cond, constGate); in PredicateAddCmpWithConst()
763 void ArrayBoundsCheckElimination::ProcessIf(IntegerStack &pushed, GateRegion *parent, OpCode cond) in ProcessIf() argument
785 if (cond in ProcessIf()
659 PredicateAddCmpWithConst(GateRef left, int32_t leftConst, TypedBinOp cond, int32_t right) PredicateAddCmpWithConst() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/litecg/
H A Dlmir_builder.h338 when inverseCond == true, using (!cond) as condition
340 1. if(cond)-then form code should be generated this way:
342 if(!cond) goto BB_end // CondGoto(cond, BB_end, true);
347 if(cond) goto BB_ifTrue // CondGoto(cond, BB_ifTrue);
355 Stmt &CondGoto(Expr cond, BB &target, bool inverseCond = false);
358 auto switchStmt = Switch(type, cond, defaultBB)
420 Expr ICmp(Type *type, Expr src1, Expr src2, IntCmpCondition cond);
421 Expr FCmp(Type *type, Expr src1, Expr src2, FloatCmpCondition cond);
461 Expr cond; global() member in maple::litecg::LMIRBuilder::SwitchBuilder
466 Switch(Type *type, Expr cond, BB &defaultBB) Switch() argument
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/
H A Dtest_util.h238 #define ASSERT_TRUE(cond) \
240 auto res = (cond); \
242 ASSERT_FAIL_IMPL(res, true, #cond, "true", "equal to"); \
246 #define ASSERT_FALSE(cond) \
248 auto res = (cond); \
250 ASSERT_FAIL_IMPL(res, false, #cond, "false", "equal to"); \
/arkcompiler/toolchain/tooling/test/utils/
H A Dtest_util.h238 #define ASSERT_TRUE(cond) \
240 auto res = (cond); \
242 ASSERT_FAIL_(res, true, #cond, "true", "equal to"); \
246 #define ASSERT_FALSE(cond) \
248 auto res = (cond); \
250 ASSERT_FAIL_(res, false, #cond, "false", "equal to"); \
/arkcompiler/ets_runtime/ecmascript/
H A Dlog_wrapper.h34 #define LOG_ECMA_IF(cond, level) (cond) && ARK_LOG(level, Component::ALL)
H A Decma_macros.h217 #define DASSERT(cond) assert(cond)
219 #define DASSERT_PRINT(cond, message) \
220 if (auto cond_val = (cond); UNLIKELY(!(cond_val))) { \
222 ASSERT(#cond &&cond_val); \
225 #define DASSERT(cond) static_cast<void>(0) // NOLINT(cppcoreguidelines-macro-usage)
226 #define DASSERT_PRINT(cond, message) static_cast<void>(0) // NOLINT(cppcoreguidelines-macro-usage)
230 #define RASSERT(cond) assert(cond)
232 #define RASSERT_PRINT(cond, messag
[all...]
/arkcompiler/runtime_core/static_core/compiler/
H A Dcompiler_logger.h70 #define COMPILER_LOG_IF(cond, level, comp) /* CC-OFFNXT(G.PRE.02) name part */ \
71 CompilerLogger::IsComponentEnabled(CompilerLoggerComponents::comp) && LOG_IF(cond, level, COMPILER) \
/arkcompiler/runtime_core/static_core/libllvmbackend/
H A Dllvm_logger.h74 #define LLVM_LOG_IF(cond, level, comp) (cond) && LLVM_LOG(level, comp)
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/src/
H A Dmpl_logging.cpp71 void LogInfo::EmitErrorMessage(const std::string &cond, const std::string &file, unsigned int line, const char *fmt, in EmitErrorMessage() argument
76 int len = snprintf_s(buf, kMaxLogLen, kMaxLogLen - 1, "CHECK/CHECK_FATAL failure: %s at [%s:%d] ", cond.c_str(), in EmitErrorMessage()
81 cond.c_str(), file.c_str(), line); in EmitErrorMessage()
/arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/
H A Dcodegen_test.cpp182 for (auto cond : conds) { in TEST_F()
191 INST(12U, Opcode::If).CC(cond).SrcType(compiler::DataType::UINT32).Inputs(0U, 1U); in TEST_F()
215 for (auto cond : conds) { in TEST_F()
224 INST(12U, Opcode::If).CC(cond).SrcType(compiler::DataType::UINT32).Inputs(0U, 1U); in TEST_F()
250 for (auto cond : conds) { in TEST_F()
259 INST(12U, Opcode::If).CC(cond).SrcType(compiler::DataType::INT64).Inputs(0U, 1U); in TEST_F()
283 for (auto cond : conds) { in TEST_F()
292 INST(12U, Opcode::If).CC(cond).SrcType(compiler::DataType::INT64).Inputs(0U, 1U); in TEST_F()
318 for (auto cond : conds) { in TEST_F()
327 INST(12U, Opcode::If).CC(cond) in TEST_F()
[all...]
/arkcompiler/runtime_core/libpandafile/
H A Dhelpers.h51 #define THROW_IF(cond, msg) \
52 if (UNLIKELY(cond)) { \
56 #define THROW_IF(cond, msg) \
57 if (UNLIKELY(cond)) { \
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
H A Dtype_info.h327 inline bool IsTestCc(Condition cond) in IsTestCc() argument
329 return cond == TST_EQ || cond == TST_NE; in IsTestCc()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/
H A Dlmir_builder.cpp432 Stmt &LMIRBuilder::CondGoto(Expr cond, BB &target, bool inverseCond) in CondGoto() argument
435 return *mirBuilder.CreateStmtCondGoto(cond.GetNode(), opcode, GetBBLabelIdx(target)); in CondGoto()
439 Stmt &LMIRBuilder::CreateSwitchInternal(Type *type, Expr cond, BB &defaultBB, in CreateSwitchInternal() argument
446 return *mirBuilder.CreateStmtSwitch(cond.GetNode(), GetBBLabelIdx(defaultBB), switchTable); in CreateSwitchInternal()
672 Expr LMIRBuilder::ICmp(Type *type, Expr src1, Expr src2, IntCmpCondition cond) in ICmp() argument
676 switch (cond) { in ICmp()
739 Expr LMIRBuilder::FCmp(Type *type, Expr src1, Expr src2, FloatCmpCondition cond) in FCmp() argument
742 switch (cond) { in FCmp()
/arkcompiler/runtime_core/libpandabase/utils/
H A Dlogger.h508 #define LOG_IF(cond, level, component) (cond) && LOG(level, component)
511 #define PLOG_IF(cond, level, component) (cond) && PLOG(level, component)
/arkcompiler/runtime_core/static_core/runtime/
H A Dintrinsics.cpp221 void Assert(uint8_t cond) in Assert() argument
223 if (cond == 0) { in Assert()
234 void AssertPrint(uint8_t cond, coretypes::String *s) in AssertPrint() argument
236 if (cond == 0) { in AssertPrint()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be/
H A Dswitch_lowerer.h61 maple::CondGotoNode *BuildCondGotoNode(maple::int32 idx, maple::Opcode opCode, maple::BaseNode &cond);

Completed in 18 milliseconds

123