Home
last modified time | relevance | path

Searched refs:Value (Results 1 – 19 of 19) sorted by relevance

/art/runtime/base/
Dhistogram.h32 template <class Value> class Histogram {
38 friend class Histogram<Value>;
43 Histogram(const char* name, Value initial_bucket_width, size_t max_buckets = 100);
44 void AddValue(Value);
59 Value GetRange(size_t bucket_idx) const;
66 Value Sum() const { in Sum()
70 Value Min() const { in Min()
74 Value Max() const { in Max()
84 size_t FindBucket(Value val) const;
85 void BucketiseValue(Value val);
[all …]
Dhistogram-inl.h31 template <class Value> inline void Histogram<Value>::AddValue(Value value) { in AddValue()
32 CHECK_GE(value, static_cast<Value>(0)); in AddValue()
34 Value new_max = ((value + 1) / bucket_width_ + 1) * bucket_width_; in AddValue()
42 template <class Value>
43 inline Histogram<Value>::Histogram(const char* name, Value initial_bucket_width, in Histogram()
53 template <class Value>
54 inline void Histogram<Value>::GrowBuckets(Value new_max) { in GrowBuckets()
76 template <class Value> inline size_t Histogram<Value>::FindBucket(Value val) const { in FindBucket()
87 template <class Value>
88 inline void Histogram<Value>::BucketiseValue(Value val) { in BucketiseValue()
[all …]
/art/compiler/llvm/
Druntime_support_builder.h31 class Value; variable
45 virtual ::llvm::Value* EmitGetCurrentThread();
46 virtual ::llvm::Value* EmitLoadFromThreadOffset(int64_t offset, ::llvm::Type* type,
48 virtual void EmitStoreToThreadOffset(int64_t offset, ::llvm::Value* value,
50 virtual ::llvm::Value* EmitSetCurrentThread(::llvm::Value* thread);
53 virtual ::llvm::Value* EmitPushShadowFrame(::llvm::Value* new_shadow_frame,
54 ::llvm::Value* method, uint32_t num_vregs);
55 virtual ::llvm::Value* EmitPushShadowFrameNoInline(::llvm::Value* new_shadow_frame,
56 ::llvm::Value* method, uint32_t num_vregs);
57 virtual void EmitPopShadowFrame(::llvm::Value* old_shadow_frame);
[all …]
Druntime_support_builder.cc34 using ::llvm::Value;
57 ::llvm::Value* RuntimeSupportBuilder::EmitGetCurrentThread() { in EmitGetCurrentThread()
65 ::llvm::Value* RuntimeSupportBuilder::EmitLoadFromThreadOffset(int64_t offset, ::llvm::Type* type, in EmitLoadFromThreadOffset()
67 Value* thread = EmitGetCurrentThread(); in EmitLoadFromThreadOffset()
71 void RuntimeSupportBuilder::EmitStoreToThreadOffset(int64_t offset, ::llvm::Value* value, in EmitStoreToThreadOffset()
73 Value* thread = EmitGetCurrentThread(); in EmitStoreToThreadOffset()
77 ::llvm::Value* RuntimeSupportBuilder::EmitSetCurrentThread(::llvm::Value* thread) { in EmitSetCurrentThread()
85 ::llvm::Value* RuntimeSupportBuilder::EmitPushShadowFrame(::llvm::Value* new_shadow_frame, in EmitPushShadowFrame()
86 ::llvm::Value* method, in EmitPushShadowFrame()
88 Value* old_shadow_frame = EmitLoadFromThreadOffset(Thread::TopShadowFrameOffset().Int32Value(), in EmitPushShadowFrame()
[all …]
Dir_builder.h79 ::llvm::LoadInst* CreateLoad(::llvm::Value* ptr, ::llvm::MDNode* tbaa_info) { in CreateLoad()
85 …::llvm::StoreInst* CreateStore(::llvm::Value* val, ::llvm::Value* ptr, ::llvm::MDNode* tbaa_info) { in CreateStore()
92 CreateAtomicCmpXchgInst(::llvm::Value* ptr, ::llvm::Value* cmp, ::llvm::Value* val, in CreateAtomicCmpXchgInst()
115 ::llvm::LoadInst* CreateLoad(::llvm::Value* ptr, TBAASpecialType special_ty) { in CreateLoad()
119 …::llvm::StoreInst* CreateStore(::llvm::Value* val, ::llvm::Value* ptr, TBAASpecialType special_ty)… in CreateStore()
124 ::llvm::LoadInst* CreateLoad(::llvm::Value* ptr, TBAASpecialType special_ty, JType j_ty) { in CreateLoad()
128 ::llvm::StoreInst* CreateStore(::llvm::Value* val, ::llvm::Value* ptr, in CreateStore()
134 ::llvm::LoadInst* LoadFromObjectOffset(::llvm::Value* object_addr, in LoadFromObjectOffset()
141 void StoreToObjectOffset(::llvm::Value* object_addr, in StoreToObjectOffset()
143 ::llvm::Value* new_value, in StoreToObjectOffset()
[all …]
Dgbc_expander.cc130 llvm::Value* old_shadow_frame_;
148 std::vector<llvm::Value*> shadow_frame_vreg_addresses_;
167 llvm::Value* ExpandToRuntime(RuntimeId rt, llvm::CallInst& inst);
169 uint64_t LV2UInt(llvm::Value* lv) { in LV2UInt()
173 int64_t LV2SInt(llvm::Value* lv) { in LV2SInt()
192 llvm::Value* SignOrZeroExtendCat1Types(llvm::Value* value, JType jty);
195 llvm::Value* TruncateCat1Types(llvm::Value* value, JType jty);
200 llvm::Value* EmitLoadDexCacheAddr(art::MemberOffset dex_cache_offset);
202 llvm::Value* EmitLoadDexCacheStaticStorageFieldAddr(uint32_t type_idx);
204 llvm::Value* EmitLoadDexCacheResolvedTypeFieldAddr(uint32_t type_idx);
[all …]
Druntime_support_builder_arm.h31 virtual ::llvm::Value* EmitGetCurrentThread();
32 virtual ::llvm::Value* EmitLoadFromThreadOffset(int64_t offset, ::llvm::Type* type,
34 virtual void EmitStoreToThreadOffset(int64_t offset, ::llvm::Value* value,
36 virtual ::llvm::Value* EmitSetCurrentThread(::llvm::Value* thread);
39 virtual void EmitLockObject(::llvm::Value* object);
40 virtual void EmitUnlockObject(::llvm::Value* object);
Druntime_support_builder_x86.h31 virtual ::llvm::Value* EmitGetCurrentThread();
32 virtual ::llvm::Value* EmitLoadFromThreadOffset(int64_t offset, ::llvm::Type* type,
34 virtual void EmitStoreToThreadOffset(int64_t offset, ::llvm::Value* value,
36 virtual ::llvm::Value* EmitSetCurrentThread(::llvm::Value* thread);
Druntime_support_builder_x86.cc38 using ::llvm::Value;
44 Value* RuntimeSupportBuilderX86::EmitGetCurrentThread() { in EmitGetCurrentThread()
54 Value* RuntimeSupportBuilderX86::EmitLoadFromThreadOffset(int64_t offset, Type* type, in EmitLoadFromThreadOffset()
66 void RuntimeSupportBuilderX86::EmitStoreToThreadOffset(int64_t offset, Value* value, in EmitStoreToThreadOffset()
77 Value* RuntimeSupportBuilderX86::EmitSetCurrentThread(Value*) { in EmitSetCurrentThread() argument
Druntime_support_builder_arm.cc37 using ::llvm::Value;
62 Value* RuntimeSupportBuilderARM::EmitGetCurrentThread() { in EmitGetCurrentThread()
71 Value* RuntimeSupportBuilderARM::EmitLoadFromThreadOffset(int64_t offset, ::llvm::Type* type, in EmitLoadFromThreadOffset()
85 void RuntimeSupportBuilderARM::EmitStoreToThreadOffset(int64_t offset, Value* value, in EmitStoreToThreadOffset()
98 Value* RuntimeSupportBuilderARM::EmitSetCurrentThread(Value* thread) { in EmitSetCurrentThread()
122 void RuntimeSupportBuilderARM::EmitLockObject(Value* object) { in EmitLockObject()
130 void RuntimeSupportBuilderARM::EmitUnlockObject(Value* object) { in EmitUnlockObject()
Druntime_support_builder_thumb2.cc39 using ::llvm::Value;
45 void RuntimeSupportBuilderThumb2::EmitLockObject(Value* object) { in EmitLockObject()
66 Value* retry_slow_path = irb_.CreateCall(func, object); in EmitLockObject()
Druntime_support_builder_thumb2.h31 virtual void EmitLockObject(::llvm::Value* object);
/art/compiler/utils/
Dscoped_hashtable_test.cc24 class Value { class
26 explicit Value(int v):value_(v) {} in Value() function in art::Value
34 ScopedHashtable<int, Value*> sht; in TEST_F()
47 sht.Add(1, new Value(1)); in TEST_F()
50 sht.Add(1, new Value(2)); in TEST_F()
56 sht.Add(1, new Value(3)); in TEST_F()
59 sht.Add(2, new Value(4)); in TEST_F()
/art/compiler/dex/portable/
Dmir_to_gbc.h80 ::llvm::Value* GetLLVMValue(int s_reg);
81 void SetVregOnValue(::llvm::Value* val, int s_reg);
82 void DefineValueOnly(::llvm::Value* val, int s_reg);
83 void DefineValue(::llvm::Value* val, int s_reg);
96 ::llvm::Value* EmitConst(::llvm::ArrayRef< ::llvm::Value*> src,
99 ::llvm::Value* EmitCopy(::llvm::ArrayRef< ::llvm::Value*> src,
108 ::llvm::Value* ConvertCompare(ConditionCode cc,
109 ::llvm::Value* src1, ::llvm::Value* src2);
114 ::llvm::Value* GenDivModOp(bool is_div, bool is_long, ::llvm::Value* src1,
115 ::llvm::Value* src2);
[all …]
Dmir_to_gbc.cc49 ::llvm::Value* MirConverter::GetLLVMValue(int s_reg) { in GetLLVMValue()
53 void MirConverter::SetVregOnValue(::llvm::Value* val, int s_reg) { in SetVregOnValue()
58 ::llvm::Value* table_slot = irb_->getInt32(v_reg); in SetVregOnValue()
59 ::llvm::Value* args[] = { table_slot, val }; in SetVregOnValue()
64 void MirConverter::DefineValueOnly(::llvm::Value* val, int s_reg) { in DefineValueOnly()
65 ::llvm::Value* placeholder = GetLLVMValue(s_reg); in DefineValueOnly()
79 void MirConverter::DefineValue(::llvm::Value* val, int s_reg) { in DefineValue()
132 ::llvm::Value* value = GetLLVMValue(rl_src.orig_sreg); in ConvertPackedSwitch()
159 ::llvm::Value* value = GetLLVMValue(rl_src.orig_sreg); in ConvertSparseSwitch()
181 ::llvm::Value* res = irb_->CreateCall(intr, field_idx); in ConvertSget()
[all …]
/art/compiler/jni/portable/
Djni_compiler.cc70 ::llvm::Value* this_object_or_class_object; in Compile()
84 ::llvm::Value* method_object_addr = arg_iter++; in Compile()
124 ::llvm::Value* shadow_frame_upcast = irb_.CreateConstGEP2_32(shadow_frame_, 0, 0); in Compile()
125 ::llvm::Value* old_shadow_frame = in Compile()
129 ::llvm::Value* jni_env_object_addr = in Compile()
135 ::llvm::Value* code_addr = in Compile()
143 std::vector< ::llvm::Value*> args; in Compile()
149 ::llvm::Value* gep_index[] = { in Compile()
159 ::llvm::Value* sirt_field_addr = irb_.CreateBitCast(irb_.CreateGEP(shadow_frame_, gep_index), in Compile()
170 ::llvm::Value* sirt_field_addr = irb_.CreateBitCast(irb_.CreateGEP(shadow_frame_, gep_index), in Compile()
[all …]
Djni_compiler.h45 class Value; variable
/art/compiler/sea_ir/code_gen/
Dcode_gen.cc140 llvm::Value* return_value = llvm_data_->GetValue(instruction->GetSSAProducers().at(0)); in Visit()
149 llvm::Value* left = llvm_data_->GetValue(use_l); in Visit()
152 llvm::Value* right = llvm_data_->GetValue(use_r); in Visit()
153 llvm::Value* ifne = llvm_data_->builder_.CreateICmpNE(left, right, instruction->StringId()); in Visit()
189 llvm::Value* left = llvm_data_->GetValue(use_l); in Visit()
190 llvm::Value* right = llvm::ConstantInt::get(*llvm_data_->context_, llvm::APInt(32, 0)); in Visit()
191 llvm::Value* result = llvm_data_->builder_.CreateAdd(left, right); in Visit()
204 std::vector<llvm::Value*> parameter_values; in Visit()
210 llvm::Value* parameter_value = llvm_data_->GetValue((*cit)); in Visit()
214 llvm::Value* return_value = llvm_data_->builder_.CreateCall(callee, in Visit()
[all …]
Dcode_gen.h53 llvm::Value* GetValue(int instruction_id) { in GetValue()
54 std::map<int, llvm::Value*>::iterator value_it = values_.find(instruction_id); in GetValue()
59 llvm::Value* GetValue(InstructionNode* instruction) { in GetValue()
63 void AddValue(int instruction_id, llvm::Value* value) { in AddValue()
64 values_.insert(std::pair<int, llvm::Value*>(instruction_id, value)); in AddValue()
67 void AddValue(InstructionNode* instruction, llvm::Value* value) { in AddValue()
81 std::map<int, llvm::Value*> values_;