#include <il_test_helper.h>
Definition at line 271 of file il_test_helper.h.
◆ IncomingDefKind
◆ FlowGraphBuilderHelper()
dart::FlowGraphBuilderHelper::FlowGraphBuilderHelper |
( |
intptr_t |
num_parameters = 0 | ) |
|
|
inlineexplicit |
Definition at line 273 of file il_test_helper.h.
276 num_parameters,
279 }
bool is_optimizing() const
static CompilerState & Current()
void CreateCommonConstants()
static Thread * Current()
◆ AddVariable()
void dart::FlowGraphBuilderHelper::AddVariable |
( |
const char * |
name, |
|
|
const AbstractType & |
static_type, |
|
|
CompileType * |
inferred_arg_type = nullptr |
|
) |
| |
|
inline |
Definition at line 302 of file il_test_helper.h.
304 {
305 LocalVariable* v =
306 new LocalVariable(TokenPosition::kNoSource, TokenPosition::kNoSource,
312 inferred_arg_type);
315 }
static constexpr bool kCannotBeSentinel
static constexpr bool kCanBeNull
static CompileType FromAbstractType(const AbstractType &type, bool can_be_null, bool can_be_sentinel)
const ParsedFunction & parsed_function() const
bool AddVariable(LocalVariable *variable)
static constexpr intptr_t kNoKernelOffset
LocalScope * scope() const
static StringPtr New(Thread *thread, const char *cstr)
◆ DoubleConstant()
ConstantInstr * dart::FlowGraphBuilderHelper::DoubleConstant |
( |
double |
value | ) |
|
|
inline |
Definition at line 296 of file il_test_helper.h.
296 {
298 }
static DoublePtr NewCanonical(double d)
ConstantInstr * GetConstant(const Object &object, Representation representation=kTagged)
◆ FinishGraph()
void dart::FlowGraphBuilderHelper::FinishGraph |
( |
| ) |
|
|
inline |
Definition at line 363 of file il_test_helper.h.
363 {
365 GrowableArray<BitVector*> dominance_frontier;
367
368 for (auto& pending : pending_phis_) {
369 auto join = pending.phi->block();
370 EXPECT(pending.phi->InputCount() ==
join->PredecessorCount());
371 auto pred_index =
join->IndexOfPredecessor(pending.incoming.from());
373 pending.phi->InputAt(pred_index)->BindTo(pending.incoming.defn());
374 }
375 }
void ComputeDominators(GrowableArray< BitVector * > *dominance_frontier)
SINT Vec< 2 *N, T > join(const Vec< N, T > &lo, const Vec< N, T > &hi)
◆ flow_graph()
FlowGraph * dart::FlowGraphBuilderHelper::flow_graph |
( |
| ) |
|
|
inline |
◆ IntConstant()
ConstantInstr * dart::FlowGraphBuilderHelper::IntConstant |
( |
int64_t |
value | ) |
const |
|
inline |
Definition at line 291 of file il_test_helper.h.
291 {
294 }
static IntegerPtr NewCanonical(const String &str)
◆ JoinEntry()
Definition at line 286 of file il_test_helper.h.
286 {
289 }
intptr_t GetNextDeoptId()
intptr_t allocate_block_id()
◆ Phi()
Definition at line 349 of file il_test_helper.h.
350 {
351 auto phi = new PhiInstr(join, incoming.size());
352 for (size_t i = 0; i < incoming.size(); i++) {
354 phi->SetInputAt(i, input);
355 input->definition()->AddInputUse(input);
356 }
357 for (auto def : incoming) {
358 pending_phis_.
Add({phi, def});
359 }
360 return phi;
361 }
ConstantInstr * constant_dead() const
◆ TargetEntry()
The documentation for this class was generated from the following file: