remove naivebackend support
This commit is contained in:
@ -1,10 +1,10 @@
|
|||||||
add_subdirectory(ast)
|
add_subdirectory(ast)
|
||||||
add_subdirectory(semantic)
|
add_subdirectory(semantic)
|
||||||
add_subdirectory(IR)
|
add_subdirectory(IR)
|
||||||
add_subdirectory(naivebackend)
|
# add_subdirectory(naivebackend)
|
||||||
add_subdirectory(opt)
|
add_subdirectory(opt)
|
||||||
add_executable(zmxcc main.cpp)
|
add_executable(zmxcc main.cpp)
|
||||||
target_link_libraries(zmxcc semantic argparse IR naivebackend opt)
|
target_link_libraries(zmxcc semantic argparse IR opt)
|
||||||
set_target_properties(zmxcc PROPERTIES
|
set_target_properties(zmxcc PROPERTIES
|
||||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
||||||
)
|
)
|
@ -2,7 +2,7 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "IR/IR.h"
|
#include "IR/IR.h"
|
||||||
#include "naivebackend/naivebackend.h"
|
// #include "naivebackend/naivebackend.h"
|
||||||
#include "opt/opt.h"
|
#include "opt/opt.h"
|
||||||
#include "semantic/semantic.h"
|
#include "semantic/semantic.h"
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ int main(int argc, char **argv) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!optimize_all) {
|
if (!optimize_all) {
|
||||||
GenerateNaiveASM(fout, IR);
|
// GenerateNaiveASM(fout, IR);
|
||||||
} else {
|
} else {
|
||||||
// IR->RecursivePrint(std::cerr);
|
// IR->RecursivePrint(std::cerr);
|
||||||
auto IR_with_out_allocas = Mem2Reg(IR);
|
auto IR_with_out_allocas = Mem2Reg(IR);
|
||||||
|
Reference in New Issue
Block a user