|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for the reusable HIR/IR builders. More...
Go to the source code of this file.
Functions | |
| TEST (CompilerBuilder, BuildsTypedHIRWithoutParserOrLowering) | |
| TEST (CompilerBuilder, BuildsValidatedIRWithoutHIRLowering) | |
| TEST (CompilerBuilder, RejectsOverwritingExitTerminator) | |
| TEST (CompilerBuilder, SetExitMarksCanonicalExitBlock) | |
Tests for the reusable HIR/IR builders.
Definition in file compiler_builder_test.cc.
| TEST | ( | CompilerBuilder | , |
| BuildsTypedHIRWithoutParserOrLowering | |||
| ) |
Definition at line 43 of file compiler_builder_test.cc.
References Aleph::Compiler_HIR_Builder::add_parameter(), Aleph::Compiler_HIR_Builder::append_argument(), Aleph::Compiler_HIR_Builder::append_function(), Aleph::Compiler_HIR_Builder::append_statement(), Aleph::Compiler_HIR_Builder::append_top_level_statement(), Aleph::blossom_maximum_cardinality_matching(), Aleph::compiler_dump_hir_module(), Aleph::Compiler_Type_Context::integer_type(), Aleph::Compiler_HIR_Builder::make_binary(), Aleph::Compiler_HIR_Builder::make_block(), Aleph::Compiler_HIR_Builder::make_call(), Aleph::Compiler_HIR_Builder::make_function(), Aleph::Compiler_Type_Context::make_function_type(), Aleph::Compiler_HIR_Builder::make_integer_constant(), Aleph::Compiler_HIR_Builder::make_let_stmt(), Aleph::Compiler_HIR_Builder::make_return_stmt(), Aleph::Compiler_HIR_Builder::make_variable(), Aleph::Compiler_HIR_Builder::set_body(), and Aleph::sum().
| TEST | ( | CompilerBuilder | , |
| BuildsValidatedIRWithoutHIRLowering | |||
| ) |
Definition at line 98 of file compiler_builder_test.cc.
References Aleph::Compiler_IR_Builder::add_global_slot(), Aleph::Compiler_IR_Builder::add_local_slot(), Aleph::DynArray< T >::append(), Aleph::Compiler_IR_Builder::append_function(), Aleph::blossom_maximum_cardinality_matching(), Aleph::compiler_dump_ir_module(), Aleph::Compiler_IR_Builder::create_block(), Aleph::Compiler_IR_Builder::emit_binary(), Aleph::Compiler_IR_Builder::emit_call(), Aleph::Compiler_IR_Builder::emit_constant(), Aleph::Compiler_IR_Builder::emit_function_ref(), Aleph::Compiler_IR_Builder::emit_load_local(), Aleph::Compiler_IR_Builder::emit_store_global(), Aleph::exit(), Aleph::Compiler_Type_Context::integer_type(), Aleph::Compiler_IR_Builder::make_function(), Aleph::Compiler_Type_Context::make_function_type(), Aleph::Compiler_IR_Builder::set_entry_block(), Aleph::Compiler_IR_Builder::set_exit(), Aleph::Compiler_IR_Builder::set_exit_block(), Aleph::Compiler_IR_Builder::set_jump(), Aleph::Compiler_IR_Builder::set_return(), Aleph::Compiler_IR_Builder::set_top_level(), Aleph::sum(), Aleph::validate_ir_module(), and y.
| TEST | ( | CompilerBuilder | , |
| RejectsOverwritingExitTerminator | |||
| ) |
Definition at line 199 of file compiler_builder_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::Compiler_IR_Builder::create_block(), Aleph::exit(), Aleph::Compiler_IR_Builder::make_function(), Aleph::Compiler_IR_Builder::set_exit(), and Aleph::Compiler_IR_Builder::set_exit_block().
| TEST | ( | CompilerBuilder | , |
| SetExitMarksCanonicalExitBlock | |||
| ) |
Definition at line 212 of file compiler_builder_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::Compiler_IR_Builder::create_block(), Aleph::exit(), Aleph::Compiler_IR_Builder::make_function(), Aleph::Compiler_IR_Builder::set_entry_block(), Aleph::Compiler_IR_Builder::set_exit(), Aleph::Compiler_IR_Builder::set_jump(), and Aleph::validate_ir_function().