tipc
A TIP to LLVM compiler
|
#include "CodeGenerator.h"
#include "FrontEnd.h"
#include "InternalError.h"
#include "Optimizer.h"
#include "ParseError.h"
#include "SemanticAnalysis.h"
#include "SemanticError.h"
#include "loguru.hpp"
#include "llvm/Support/CommandLine.h"
#include <fstream>
Functions | |
int | main (int argc, char *argv[]) |
tipc driver. More... | |
int main | ( | int | argc, |
char * | argv[] | ||
) |
tipc driver.
This function is the entry point for tipc. It handles command line parsing using LLVM CommandLine support. It runs the phases of the compiler in sequence. If an error is detected, via an exception, it reports the error and exits. If there is no error, then the LLVM bitcode is emitted to a file whose name is the providvvved source file suffixed by ".bc".