Home
last modified time | relevance | path

Searched refs:Value (Results 1 - 25 of 421) sorted by relevance

12345678910>>...17

/arkcompiler/runtime_core/assembler/tests/
H A Dannotation_test.cpp40 ScalarValue insn_order(ScalarValue::Create<panda::pandasm::Value::Type::I32>(1)); in HWTEST_F()
44 ArrayValue array_value(panda::pandasm::Value::Type::I32, elements); in HWTEST_F()
57 ScalarValue insn_order1(ScalarValue::Create<panda::pandasm::Value::Type::U1>(1U)); in HWTEST_F()
59 ArrayValue array_value_U1(panda::pandasm::Value::Type::U1, elements); in HWTEST_F()
74 char type_u1 = Value::GetTypeAsChar(panda::pandasm::Value::Type::U1); in HWTEST_F()
78 type_u1 = Value::GetTypeAsChar(panda::pandasm::Value::Type::I8); in HWTEST_F()
82 type_u1 = Value::GetTypeAsChar(panda::pandasm::Value in HWTEST_F()
[all...]
H A Dparser_test.cpp35 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].opcode, Opcode::MOV); in TEST()
36 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[0], 1) << "1 expected"; in TEST()
37 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[1], 2) << "2 expected"; in TEST()
52 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].label, "label") << "label expected"; in TEST()
53 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].set_label, true) << "true expected"; in TEST()
54 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].opcode, Opcode::INVALID) << "NONE expected"; in TEST()
91 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].opcode, Opcode::ADDI) << "IMM expected"; in TEST()
92 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].imms[0], Ins::IType(int64_t(1))) << "1 expected"; in TEST()
107 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].opcode, Opcode::ADDI) << "IMM expected"; in TEST()
108 ASSERT_EQ(item.Value() in TEST()
[all...]
H A Dassembler_parser_test.cpp49 EXPECT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[0], 1) << "1 expected"; in HWTEST_F()
50 EXPECT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[1], 2) << "2 expected"; in HWTEST_F()
71 EXPECT_EQ(item.Value().function_table.at(sig_main).ins[0].label, "label") << "label expected"; in HWTEST_F()
72 EXPECT_EQ(item.Value().function_table.at(sig_main).ins[0].set_label, true) << "true expected"; in HWTEST_F()
73 EXPECT_EQ(item.Value().function_table.at(sig_main).ins[0].opcode, Opcode::INVALID) << "NONE expected"; in HWTEST_F()
206 auto &program = res.Value(); in HWTEST_F()
252 auto it = item.Value().function_table.find(func_name); in HWTEST_F()
253 EXPECT_NE(it, item.Value().function_table.end()); in HWTEST_F()
254 EXPECT_EQ(item.Value().function_table.at(func_name).ins[3].ids[0], "foo") << "nain expected"; in HWTEST_F()
255 EXPECT_EQ(item.Value() in HWTEST_F()
[all...]
/arkcompiler/runtime_core/assembler/
H A Dannotation.cpp24 case Value::Type::U1: { in InitScalarValue()
25 copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U1>(sc_val.GetValue<uint8_t>())); in InitScalarValue()
28 case Value::Type::U8: { in InitScalarValue()
29 copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U8>(sc_val.GetValue<uint8_t>())); in InitScalarValue()
32 case Value::Type::U16: { in InitScalarValue()
34 std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U16>(sc_val.GetValue<uint16_t>())); in InitScalarValue()
37 case Value::Type::U32: { in InitScalarValue()
39 std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U32>(sc_val.GetValue<uint32_t>())); in InitScalarValue()
42 case Value::Type::U64: { in InitScalarValue()
44 std::make_unique<ScalarValue>(ScalarValue::Create<Value in InitScalarValue()
[all...]
H A Dmeta.cpp37 return Error("Value is out of range", Error::Type::INVALID_VALUE); in ValidateSize()
48 static panda::pandasm::Value::Type GetType(const std::string_view &value) in GetType()
50 using VType = panda::pandasm::Value::Type; in GetType()
125 return Unexpected(Metadata::Error("Value is out of range", Metadata::Error::Type::INVALID_VALUE)); in ConvertFromString()
131 template <Value::Type type, class T = ValueTypeHelperT<type>>
140 auto converted = res.Value(); in CreatePrimitiveValue()
142 return Unexpected(Metadata::Error("Value is out of range", Metadata::Error::Type::INVALID_VALUE)); in CreatePrimitiveValue()
149 Value::Type type, const std::string_view &value, in CreateValue()
153 case Value::Type::U1: {
154 return CreatePrimitiveValue<Value
[all...]
H A Dannotation.h76 class Value { class
396 virtual ~Value() = default;
398 DEFAULT_COPY_SEMANTIC(Value);
399 DEFAULT_MOVE_SEMANTIC(Value);
402 explicit Value(Type type) : type_(type) {} in Value() function in panda::pandasm::Value
410 template <Value::Type value_type>
414 using type = std::conditional_t<value_type == Value::Type::U1, uint8_t,
416 std::conditional_t<value_type == Value::Type::I8, int8_t,
418 std::conditional_t<value_type == Value::Type::U8, uint8_t,
420 std::conditional_t<value_type == Value
[all...]
/arkcompiler/runtime_core/static_core/assembler/
H A Dannotation.cpp25 case Value::Type::U1: { in InitScalarValue()
26 copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U1>(scVal.GetValue<uint8_t>())); in InitScalarValue()
29 case Value::Type::U8: { in InitScalarValue()
30 copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U8>(scVal.GetValue<uint8_t>())); in InitScalarValue()
33 case Value::Type::U16: { in InitScalarValue()
34 copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U16>(scVal.GetValue<uint16_t>())); in InitScalarValue()
37 case Value::Type::U32: { in InitScalarValue()
38 copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U32>(scVal.GetValue<uint32_t>())); in InitScalarValue()
41 case Value::Type::U64: { in InitScalarValue()
42 copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value in InitScalarValue()
[all...]
H A Dmeta.cpp37 return Error("Value is out of range", Error::Type::INVALID_VALUE); in ValidateSize()
48 static ark::pandasm::Value::Type GetType(std::string_view value) in GetType()
50 using VType = ark::pandasm::Value::Type; in GetType()
126 return Unexpected(Metadata::Error("Value is out of range", Metadata::Error::Type::INVALID_VALUE)); in ConvertFromString()
132 template <Value::Type TYPE, class T = ValueTypeHelperT<TYPE>>
141 auto converted = res.Value(); in CreatePrimitiveValue()
143 return Unexpected(Metadata::Error("Value is out of range", Metadata::Error::Type::INVALID_VALUE)); in CreatePrimitiveValue()
151 Value::Type type, std::string_view value, in CreateValue()
155 case Value::Type::U1: {
156 return CreatePrimitiveValue<Value
[all...]
H A Dannotation.h72 class Value { class
386 virtual ~Value() = default;
388 DEFAULT_COPY_SEMANTIC(Value);
389 DEFAULT_MOVE_SEMANTIC(Value);
392 explicit Value(Type type) : type_(type) {} in Value() function in ark::pandasm::Value
400 template <Value::Type VALUE_TYPE>
404 using Type = std::conditional_t<VALUE_TYPE == Value::Type::U1, uint8_t,
406 std::conditional_t<VALUE_TYPE == Value::Type::I8, int8_t,
408 std::conditional_t<VALUE_TYPE == Value::Type::U8, uint8_t,
410 std::conditional_t<VALUE_TYPE == Value
[all...]
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dhistogram-inl.h25 template <class Value>
27 SimpleHistogram<Value>::SimpleHistogram(ForwardIterator start, ForwardIterator finish, helpers::ValueType typeOfValue) in SimpleHistogram()
35 template <class Value>
36 PandaString SimpleHistogram<Value>::GetGeneralStatistic() const in GetGeneralStatistic()
45 template <class Value>
46 void SimpleHistogram<Value>::AddValue(const Value &element, size_t number) in AddValue()
48 sum_ += element * Value(number); in AddValue()
49 sumOfSquares_ += element * element * Value(number); in AddValue()
60 template <class Value>
[all...]
H A Dhistogram.h30 template <class Value>
58 void AddValue(const Value &element, size_t number = 1);
65 Value GetSum() const in GetSum()
70 Value GetMin() const in GetMin()
75 Value GetMax() const in GetMax()
100 Value sum_ {};
101 Value sumOfSquares_ {};
102 Value min_ {};
103 Value max_ {};
111 template <class Value>
[all...]
H A Dvalue.h31 class Value { class
33 explicit Value() : value_(0) {} in Value() function in ark::Value
34 DEFAULT_COPY_SEMANTIC(Value);
35 DEFAULT_MOVE_SEMANTIC(Value);
36 ~Value() = default;
39 explicit Value(T value) in Value() function in ark::Value
85 static ALWAYS_INLINE Value FromVReg(VRegisterRef vreg) in FromVReg()
88 return Value(vreg.GetReference()); in FromVReg()
90 return Value(vreg.GetValue()); in FromVReg()
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
H A Dllvm_ir_constructor.h78 llvm::Value *GetMappedValue(Inst *inst, DataType::Type type);
79 llvm::Value *GetInputValue(Inst *inst, size_t index, bool skipCoerce = false);
80 llvm::Value *GetInputValueFromConstant(ConstantInst *constant, DataType::Type pandaType);
108 llvm::ArrayRef<llvm::Value *> args = llvm::None);
111 llvm::ArrayRef<llvm::Value *> arguments);
112 llvm::Value *CreateAllocaForArgs(llvm::Type *type, uint32_t arraySize);
114 llvm::ArrayRef<llvm::Value *> args = llvm::None);
116 llvm::Value *CreateIsInstanceEntrypointCall(Inst *inst);
117 llvm::Value *CreateIsInstanceObject(llvm::Value *klassOb
[all...]
H A Dgc_barriers.h26 void EmitPreWRB(llvm::IRBuilder<> *builder, llvm::Value *mem, bool isVolatileMem, llvm::BasicBlock *outBb,
27 LLVMArkInterface *arkInterface, llvm::Value *threadRegValue);
29 void EmitPostWRB(llvm::IRBuilder<> *builder, llvm::Value *mem, llvm::Value *offset, llvm::Value *value,
30 LLVMArkInterface *arkInterface, llvm::Value *threadRegValue, llvm::Value *frameRegValue);
/arkcompiler/ets_frontend/merge_abc/src/
H A DannotationProto.cpp75 case panda::pandasm::Value::Type::U1: in Serialize()
76 case panda::pandasm::Value::Type::U8: in Serialize()
79 case panda::pandasm::Value::Type::U16: in Serialize()
82 case panda::pandasm::Value::Type::STRING_NULLPTR: in Serialize()
83 case panda::pandasm::Value::Type::U32: in Serialize()
86 case panda::pandasm::Value::Type::U64: in Serialize()
89 case panda::pandasm::Value::Type::I8: in Serialize()
92 case panda::pandasm::Value::Type::I16: in Serialize()
95 case panda::pandasm::Value::Type::I32: in Serialize()
98 case panda::pandasm::Value in Serialize()
[all...]
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/
H A Dgc_intrusion.h42 using SSAVarRelocs = llvm::DenseMap<llvm::Value *, llvm::DenseMap<llvm::BasicBlock *, llvm::Value *>>;
43 using InstructionOrderMap = llvm::DenseMap<llvm::Value *, uint64_t>;
44 using SortedUses = llvm::DenseMap<llvm::Value *, std::list<llvm::Use *>>;
53 void RewriteWithGcInBlock(llvm::BasicBlock *block, GcRefLiveness *liveness, llvm::SetVector<llvm::Value *> *alive,
56 static bool ComesBefore(llvm::Value *a, llvm::Value *b, InstructionOrderMap *orderMap);
64 llvm::Value *CreateBackwardCasts(llvm::IRBuilder<> *builder, llvm::Value *from,
69 void ReplaceWithPhi(llvm::Value *va
[all...]
/arkcompiler/runtime_core/static_core/assembler/tests/
H A Dparser_test.cpp38 ASSERT_EQ(item.Value().functionTable.at(sigMain).ins[0].opcode, Opcode::MOV); in TEST()
39 ASSERT_EQ(item.Value().functionTable.at(sigMain).ins[0].regs[0], 1) << "1 expected"; in TEST()
40 ASSERT_EQ(item.Value().functionTable.at(sigMain).ins[0].regs[1], 2) << "2 expected"; in TEST()
55 ASSERT_EQ(item.Value().functionTable.at(sigMain).ins[0].label, "label") << "label expected"; in TEST()
56 ASSERT_EQ(item.Value().functionTable.at(sigMain).ins[0].setLabel, true) << "true expected"; in TEST()
57 ASSERT_EQ(item.Value().functionTable.at(sigMain).ins[0].opcode, Opcode::INVALID) << "NONE expected"; in TEST()
94 ASSERT_EQ(item.Value().functionTable.at(sigMain).ins[0].opcode, Opcode::ADDI) << "IMM expected"; in TEST()
95 ASSERT_EQ(item.Value().functionTable.at(sigMain).ins[0].imms[0], Ins::IType(int64_t(1))) << "1 expected"; in TEST()
110 ASSERT_EQ(item.Value().functionTable.at(sigMain).ins[0].opcode, Opcode::ADDI) << "IMM expected"; in TEST()
111 ASSERT_EQ(item.Value() in TEST()
[all...]
/arkcompiler/runtime_core/libpandabase/serializer/
H A Dserializer.h71 return ret.Value() + size;
96 ret.Value() += k.Value();
103 ret.Value() += v.Value();
132 ASSERT(r.Value() <= size); in BufferToType()
133 data = ToUint8tPtr(ToUintPtr(data) + r.Value()); in BufferToType()
134 size -= r.Value(); in BufferToType()
142 return r.Value() + str_size; in BufferToType()
156 ASSERT(r.Value() < in BufferToType()
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/serializer/
H A Dserializer.h71 return ret.Value() + size;
90 ret.Value() += k.Value();
97 ret.Value() += v.Value();
139 ASSERT(r.Value() <= size); in BufferToType()
140 data = ToUint8tPtr(ToUintPtr(data) + r.Value()); in BufferToType()
141 size -= r.Value(); in BufferToType()
142 return BufferToTypeUnpackString(data, size, out, strSize, r.Value()); in BufferToType()
156 ASSERT(r.Value() < in BufferToType()
[all...]
/arkcompiler/runtime_core/libpandabase/utils/
H A Dexpected.h31 const E &Value() const &noexcept
35 E &Value() & noexcept
39 E &&Value() && noexcept
76 Expected(Unexpected<E> e) noexcept(std::is_nothrow_move_constructible_v<E>) : v_(std::move(e.Value())) {} in noexcept()
103 const T &Value() const &noexcept(ExpectedConfig::RELEASE) in noexcept()
110 T &Value() & noexcept(ExpectedConfig::RELEASE) in noexcept()
115 T &&Value() && noexcept(ExpectedConfig::RELEASE) in noexcept()
122 return Value(); in noexcept()
126 return Value(); in noexcept()
130 return std::move(*this).Value(); in noexcept()
[all...]
H A Djson_parser.h34 class Value;
38 using ArrayT = std::vector<Value>;
42 class Value { class in panda::JsonObject
44 Value() = default;
45 ~Value() = default;
46 NO_COPY_SEMANTIC(Value);
47 Value(Value &&rhs) noexcept: value_(std::move(rhs.value_)) in move()
51 Value &operator=(Value in move()
[all...]
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/
H A Dgc_utils.h29 bool IsDerived(llvm::Value *val);
30 DerivedStatus IsPHIDerived(llvm::PHINode *phi, llvm::SmallSet<llvm::Value *, 8U> *visited);
31 DerivedStatus IsDerivedImpl(llvm::Value *val, llvm::SmallSet<llvm::Value *, 8U> *visited = nullptr);
32 bool HasBeenGcRef(const llvm::Value *val, bool any = true);
34 bool IsNonMovable(const llvm::Value *value);
58 inline bool IsNullCmp(const llvm::Value *val) in IsNullCmp()
71 inline bool IsAllowedEscapedUser(const llvm::Value *val) in IsAllowedEscapedUser()
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dexpected.h31 const E &Value() const &noexcept
35 E &Value() &noexcept
39 E &&Value() &&noexcept
76 Expected(Unexpected<E> e) noexcept(std::is_nothrow_move_constructible_v<E>) : v_(std::move(e.Value())) {} in noexcept()
104 const T &Value() const &noexcept(ExpectedConfig::RELEASE) in noexcept()
111 T &Value() &noexcept(ExpectedConfig::RELEASE) in noexcept()
116 T &&Value() &&noexcept(ExpectedConfig::RELEASE) in noexcept()
123 return Value(); in noexcept()
128 return Value(); in noexcept()
132 return std::move(*this).Value(); in noexcept()
[all...]
H A Djson_parser.h34 class Value;
38 using ArrayT = std::vector<Value>;
42 class Value { class in ark::JsonObject
44 Value() = default;
45 ~Value() = default;
46 NO_COPY_SEMANTIC(Value);
47 Value(Value &&rhs) noexcept // NOLINT(bugprone-exception-escape)
52 Value &operator=(Value
[all...]
/arkcompiler/runtime_core/abc2program/
H A Dabc_annotation_processor.cpp60 pandasm::ScalarValue::Create<pandasm::Value::Type::LITERALARRAY>(name))); in FillLiteralArrayAnnotation()
69 auto value_type = pandasm::Value::GetCharAsType(annotation_data_accessor_->GetTag(i).GetItem()); in FillAnnotationElements()
71 case pandasm::Value::Type::U1: { in FillAnnotationElements()
75 pandasm::ScalarValue::Create<pandasm::Value::Type::U1>(value))); in FillAnnotationElements()
79 case pandasm::Value::Type::U32: { in FillAnnotationElements()
83 pandasm::ScalarValue::Create<pandasm::Value::Type::U32>(value))); in FillAnnotationElements()
87 case pandasm::Value::Type::F64: { in FillAnnotationElements()
91 pandasm::ScalarValue::Create<pandasm::Value::Type::F64>(value))); in FillAnnotationElements()
95 case pandasm::Value::Type::STRING: { in FillAnnotationElements()
101 pandasm::ScalarValue::Create<pandasm::Value in FillAnnotationElements()
[all...]

Completed in 21 milliseconds

12345678910>>...17