diff options
| author | 2012-05-11 11:23:39 +0800 | |
|---|---|---|
| committer | 2012-05-15 02:30:00 -0700 | |
| commit | c3f8fa57268740f95a3c25e605bcab638b18d7b9 (patch) | |
| tree | 4075ef3292c686d94e30508ef30552389c92682a /src/compiler_llvm/compiler_llvm.cc | |
| parent | b1bab1c9e40ff9049f57f09a876ac77b44517144 (diff) | |
Reorder LLVM initialize procedure.
Change-Id: I7c5683c010d936eaa893866dc65b1254359eb8f6
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
| -rw-r--r-- | src/compiler_llvm/compiler_llvm.cc | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc index dce7f9164f..b517d47011 100644 --- a/src/compiler_llvm/compiler_llvm.cc +++ b/src/compiler_llvm/compiler_llvm.cc @@ -55,12 +55,18 @@ namespace {  pthread_once_t llvm_initialized = PTHREAD_ONCE_INIT;  void InitializeLLVM() { +  // Initialize LLVM internal data structure for multithreading +  llvm::llvm_start_multithreaded(); +    // NOTE: Uncomment following line to show the time consumption of LLVM passes    //llvm::TimePassesIsEnabled = true;    // Enable -arm-reserve-r9    ReserveR9 = true; +  // Enable -arm-long-calls +  EnableARMLongCalls = false; +    // Initialize LLVM target, MC subsystem, asm printer, and asm parser    llvm::InitializeAllTargets();    llvm::InitializeAllTargetMCs(); @@ -68,9 +74,6 @@ void InitializeLLVM() {    llvm::InitializeAllAsmParsers();    // TODO: Maybe we don't have to initialize "all" targets. -  // Enable -arm-long-calls -  EnableARMLongCalls = false; -    // Initialize LLVM optimization passes    llvm::PassRegistry ®istry = *llvm::PassRegistry::getPassRegistry(); @@ -83,9 +86,6 @@ void InitializeLLVM() {    llvm::initializeInstCombine(registry);    llvm::initializeInstrumentation(registry);    llvm::initializeTarget(registry); - -  // Initialize LLVM internal data structure for multithreading -  llvm::llvm_start_multithreaded();  }  // The Guard to Shutdown LLVM |