Home
last modified time | relevance | path

Searched refs:ToInt (Results 1 – 25 of 122) sorted by relevance

12345

/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Druntime_conv2d_mkl.cc31 int ToInt(int64 input) { in ToInt() function
68 memory::dims conv1_src_dim = {ToInt(input_batch), ToInt(input_channels), in MKLConvImpl()
69 ToInt(input_rows), ToInt(input_cols)}; in MKLConvImpl()
70 memory::dims conv1_weights_dim = {ToInt(kernel_filters), in MKLConvImpl()
71 ToInt(kernel_channels), ToInt(kernel_rows), in MKLConvImpl()
72 ToInt(kernel_cols)}; in MKLConvImpl()
73 memory::dims conv1_dst_dim = {ToInt(input_batch), ToInt(kernel_filters), in MKLConvImpl()
74 ToInt(output_rows), ToInt(output_cols)}; in MKLConvImpl()
75 memory::dims conv1_strides = {ToInt(row_stride), ToInt(col_stride)}; in MKLConvImpl()
77 memory::dims conv1_dilates = {ToInt(rhs_row_dilation - 1), in MKLConvImpl()
[all …]
/external/v8/src/compiler/backend/
Djump-threading.cc26 if (result[num.ToInt()] == unvisited()) { in PushIfUnvisited()
28 result[num.ToInt()] = onstack(); in PushIfUnvisited()
33 RpoNumber to_to = result[to.ToInt()]; in Forward()
36 TRACE(" xx %d\n", from.ToInt()); in Forward()
37 result[from.ToInt()] = from; in Forward()
39 TRACE(" fw %d -> %d (recurse)\n", from.ToInt(), to.ToInt()); in Forward()
41 result[to.ToInt()] = onstack(); in Forward()
44 TRACE(" fw %d -> %d (cycle)\n", from.ToInt(), to.ToInt()); in Forward()
45 result[from.ToInt()] = to; // break the cycle. in Forward()
48 TRACE(" fw %d -> %d (forward)\n", from.ToInt(), to.ToInt()); in Forward()
[all …]
Dspill-placer.cc291 for (int i = last_block_.ToInt(); i >= first_block_.ToInt(); --i) { in FirstBackwardPass()
337 for (int i = first_block_.ToInt(); i <= last_block_.ToInt(); ++i) { in ForwardPass()
394 for (int i = last_block_.ToInt(); i >= first_block_.ToInt(); --i) { in SecondBackwardPass()
Dmid-tier-register-allocator.cc157 return block_states_[rpo_number.ToInt()]; in block_state()
185 int ToInt() const { in ToInt() function in v8::internal::compiler::RegisterIndex
192 return 1ull << ToInt(); in ToBit()
195 return 3ull << ToInt(); in ToBit()
258 blocks_covered_.Add(block.ToInt()); in AddBlock()
416 int block_rpo = block->rpo_number().ToInt(); in IsLiveAt()
1173 return *register_data_[reg.ToInt()]; in reg_data()
1192 register_data_[reg.ToInt()] = nullptr; in ResetDataFor()
1199 DCHECK_LT(reg.ToInt(), register_data_.size()); in HasRegisterData()
1200 return register_data_[reg.ToInt()] != nullptr; in HasRegisterData()
[all …]
/external/fastrpc/src/
Dsmath.c34 static int32 ToInt(int64 a) in ToInt() function
43 return ToInt((int64)a + (int64)b); in smath_Add()
48 return ToInt((int64)a - (int64)b); in smath_Sub()
53 return ToInt((int64)a * (int64)b); in smath_Mul()
/external/v8/src/compiler/backend/arm/
Dunwinding-info-writer-arm.cc18 DCHECK_LT(block->rpo_number().ToInt(), in BeginInstructionBlock()
21 block_initial_states_[block->rpo_number().ToInt()]; in BeginInstructionBlock()
38 int successor_index = successor.ToInt(); in EndInstructionBlock()
/external/v8/src/compiler/backend/arm64/
Dunwinding-info-writer-arm64.cc21 DCHECK_LT(block->rpo_number().ToInt(), in BeginInstructionBlock()
24 block_initial_states_[block->rpo_number().ToInt()]; in BeginInstructionBlock()
42 int successor_index = successor.ToInt(); in EndInstructionBlock()
/external/v8/src/compiler/backend/s390/
Dunwinding-info-writer-s390.cc17 DCHECK_LT(block->rpo_number().ToInt(), in BeginInstructionBlock()
20 block_initial_states_[block->rpo_number().ToInt()]; in BeginInstructionBlock()
38 int successor_index = successor.ToInt(); in EndInstructionBlock()
/external/v8/src/compiler/backend/ppc/
Dunwinding-info-writer-ppc.cc17 DCHECK_LT(block->rpo_number().ToInt(), in BeginInstructionBlock()
20 block_initial_states_[block->rpo_number().ToInt()]; in BeginInstructionBlock()
39 int successor_index = successor.ToInt(); in EndInstructionBlock()
/external/v8/src/compiler/backend/x64/
Dunwinding-info-writer-x64.cc18 DCHECK_LT(block->rpo_number().ToInt(), in BeginInstructionBlock()
21 block_initial_states_[block->rpo_number().ToInt()]; in BeginInstructionBlock()
43 int successor_index = successor.ToInt(); in EndInstructionBlock()
/external/v8/src/compiler/
Dscheduler.cc424 TRACE("Create block id:%d for #%d:%s\n", block->id().ToInt(), node->id(), in BuildBlockForNode()
616 node->op()->mnemonic(), block->id().ToInt()); in TraceConnect()
619 node->op()->mnemonic(), block->id().ToInt(), succ->id().ToInt()); in TraceConnect()
910 if (loop != nullptr && !loop->members->Contains(succ->id().ToInt())) { in ComputeAndInsertSpecialRPO()
983 current->id().ToInt(), loop_depth); in ComputeAndInsertSpecialRPO()
989 TRACE("id:%d is not in a loop (depth == %d)\n", current->id().ToInt(), in ComputeAndInsertSpecialRPO()
993 current->id().ToInt(), current->loop_header()->id().ToInt(), in ComputeAndInsertSpecialRPO()
1027 if (!loops_[loop_num].members->Contains(member->id().ToInt())) { in ComputeLoopInfo()
1028 loops_[loop_num].members->Add(member->id().ToInt()); in ComputeLoopInfo()
1040 if (!loops_[loop_num].members->Contains(pred->id().ToInt())) { in ComputeLoopInfo()
[all …]
/external/v8/src/objects/
Dscope-info.cc284 int info = Smi::ToInt(scope_info.get(info_index)); in Create()
775 return Smi::ToInt(get(PositionInfoIndex())); in StartPosition()
780 return Smi::ToInt(get(PositionInfoIndex() + 1)); in EndPosition()
811 int value = Smi::ToInt(get(info_index)); in ContextLocalMode()
819 int value = Smi::ToInt(get(info_index)); in ContextLocalIsStaticFlag()
827 int value = Smi::ToInt(get(info_index)); in ContextLocalInitFlag()
835 int value = Smi::ToInt(get(info_index)); in ContextLocalIsParameter()
842 int value = Smi::ToInt(get(info_index)); in ContextLocalParameterNumber()
850 int value = Smi::ToInt(get(info_index)); in ContextLocalMaybeAssignedFlag()
874 int module_vars_count = Smi::ToInt(get(ModuleVariableCountIndex())); in ModuleIndex()
[all …]
Dcompilation-cache-table-inl.h69 int language_unchecked = Smi::ToInt(val.get(2)); in HashForObject()
72 int position = Smi::ToInt(val.get(3)); in HashForObject()
Djs-regexp-inl.h45 return Smi::ToInt(DataAt(kIrregexpCaptureCountIndex)); in CaptureCount()
53 return Smi::ToInt(DataAt(kIrregexpMaxRegisterCountIndex)); in MaxRegisterCount()
Djs-regexp.cc49 int last_index = Smi::ToInt(*last_index_object); in GetAndCacheIndices()
168 return static_cast<uint32_t>(Smi::ToInt(DataAt(kIrregexpBacktrackLimit))); in BacktrackLimit()
257 return Smi::ToInt(DataAt(kIrregexpTicksUntilTierUpIndex)) == 0; in MarkedForTierUp()
263 int tier_up_ticks = Smi::ToInt(DataAt(kIrregexpTicksUntilTierUpIndex)) + 1; in ResetLastTierUpTick()
271 int tier_up_ticks = Smi::ToInt(DataAt(kIrregexpTicksUntilTierUpIndex)); in TierUpTick()
Dfeedback-vector.cc42 if (slot_count() <= slot.ToInt()) return false; in HasTypeProfileSlot()
65 int index = VectorICComputer::index(0, slot.ToInt()); in GetKind()
67 return VectorICComputer::decode(data, slot.ToInt()); in GetKind()
71 int index = VectorICComputer::index(0, slot.ToInt()); in SetKind()
73 int new_data = VectorICComputer::encode(data, slot.ToInt(), kind); in SetKind()
199 return slot.ToInt() < slot_count() && in HasTypeProfileSlot()
497 CHECK_GT(vector.length(), start_slot.WithOffset(1).ToInt()); in SetFeedbackPair()
947 uint32_t value = static_cast<uint32_t>(Smi::ToInt(call_count)); in GetCallCount()
956 uint32_t count = static_cast<uint32_t>(Smi::ToInt(call_count)); in SetSpeculationMode()
970 uint32_t value = static_cast<uint32_t>(Smi::ToInt(call_count)); in GetSpeculationMode()
[all …]
Dfeedback-vector-inl.h187 const int i = slot.ToInt(); in SynchronizedGet()
198 const int i = slot.ToInt(); in SynchronizedSet()
322 return next_slot_.ToInt() < metadata().slot_count(); in HasNext()
329 next_slot_ = FeedbackSlot(next_slot_.ToInt() + entry_size()); in Next()
Dhash-table-inl.h232 return FindEntry(isolate, ReadOnlyRoots(isolate), key, Smi::ToInt(hash)) in Has()
241 return Smi::ToInt(key->GetHash()); in Hash()
246 return Smi::ToInt(other.GetHash()); in HashForObject()
Ddictionary-inl.h73 return Smi::ToInt(this->get(kNextEnumerationIndexIndex)); in next_enumeration_index()
85 int hash = Smi::ToInt(hash_obj); in Hash()
113 return 0 != (Smi::ToInt(max_index_object) & kRequiresSlowElementsMask); in requires_slow_elements()
120 uint32_t value = static_cast<uint32_t>(Smi::ToInt(max_index_object)); in max_number_key()
/external/clang/lib/AST/
DASTDiagnostic.cpp619 void SetIntegerDiff(const llvm::APSInt &FromInt, const llvm::APSInt &ToInt, in SetIntegerDiff() argument
627 FlatTree[CurrentNode].ToArgInfo.Val = ToInt; in SetIntegerDiff()
656 Expr *FromExpr, const llvm::APSInt &ToInt, bool IsValidToInt, in SetFromDeclarationAndToIntegerDiff() argument
664 FlatTree[CurrentNode].ToArgInfo.Val = ToInt; in SetFromDeclarationAndToIntegerDiff()
775 void GetIntegerDiff(llvm::APSInt &FromInt, llvm::APSInt &ToInt, in GetIntegerDiff() argument
781 ToInt = FlatTree[ReadNode].ToArgInfo.Val; in GetIntegerDiff()
807 Expr *&FromExpr, llvm::APSInt &ToInt, bool &IsValidToInt, in GetFromDeclarationAndToIntegerDiff() argument
815 ToInt = FlatTree[ReadNode].ToArgInfo.Val; in GetFromDeclarationAndToIntegerDiff()
1207 llvm::APSInt FromInt, ToInt; in DiffNonTypes() local
1215 InitializeNonTypeDiffVariables(Context, ToIter, ToDefaultNonTypeDecl, ToInt, in DiffNonTypes()
[all …]
/external/v8/src/diagnostics/
Dobjects-debug.cc674 int mappedIndex = Smi::ToInt(mapped); in SloppyArgumentsElementsVerify()
722 int month = Smi::ToInt(this->month()); in JSDateVerify()
726 int day = Smi::ToInt(this->day()); in JSDateVerify()
730 int hour = Smi::ToInt(this->hour()); in JSDateVerify()
734 int min = Smi::ToInt(this->min()); in JSDateVerify()
738 int sec = Smi::ToInt(this->sec()); in JSDateVerify()
742 int weekday = Smi::ToInt(this->weekday()); in JSDateVerify()
746 CHECK(Smi::ToInt(cache_stamp()) <= in JSDateVerify()
747 Smi::ToInt(isolate->date_cache()->stamp())); in JSDateVerify()
902 int value = Smi::ToInt(number); in OddballVerify()
[all …]
/external/v8/src/strings/
Dstring-builder.cc23 int encoded_slice = Smi::ToInt(element); in StringBuilderConcatHelper()
34 pos = Smi::ToInt(obj); in StringBuilderConcatHelper()
65 int smi_value = Smi::ToInt(elt); in StringBuilderConcatLength()
80 pos = Smi::ToInt(next_smi); in StringBuilderConcatLength()
/external/perfetto/src/traced/probes/ps/
Dprocess_stats_data_source.cc82 inline int ToInt(const std::string& str) { in ToInt() function
237 int tgid = ToInt(ReadProcStatusEntry(proc_status, "Tgid:")); in WriteProcessOrThread()
253 PERFETTO_DCHECK(ToInt(ReadProcStatusEntry(proc_status, "Tgid:")) == pid); in WriteProcess()
256 proc->set_ppid(ToInt(ReadProcStatusEntry(proc_status, "PPid:"))); in WriteProcess()
258 proc->set_uid(ToInt(ReadProcStatusEntry(proc_status, "Uid:"))); in WriteProcess()
436 auto counter = ToInt(oom_score_adj); in WriteAllProcessStats()
/external/v8/src/codegen/
Dpending-optimization-table.cc65 FunctionStatusFlags status(Smi::ToInt(Handle<Tuple2>::cast(entry)->value2())); in IsHeuristicOptimizationAllowed()
93 FunctionStatusFlags status(Smi::ToInt(Handle<Tuple2>::cast(entry)->value2())); in MarkedForOptimization()
/external/v8/src/execution/
Dprotectors-inl.h21 Smi::ToInt(cell.value()) == kProtectorValid; \

12345