src/share/vm/shark/llvmHeaders.hpp

Print this page




  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #ifndef SHARE_VM_SHARK_LLVMHEADERS_HPP
  27 #define SHARE_VM_SHARK_LLVMHEADERS_HPP
  28 
  29 #ifdef assert
  30   #undef assert
  31 #endif
  32 
  33 #ifdef DEBUG
  34   #define SHARK_DEBUG
  35   #undef DEBUG
  36 #endif
  37 
  38 #include <llvm/Analysis/Verifier.h>






  39 #include <llvm/Argument.h>
  40 #include <llvm/Constants.h>
  41 #include <llvm/DerivedTypes.h>
  42 #include <llvm/ExecutionEngine/ExecutionEngine.h>
  43 #include <llvm/Instructions.h>
  44 #include <llvm/LLVMContext.h>
  45 #include <llvm/Module.h>
  46 #if SHARK_LLVM_VERSION <= 31
  47 #include <llvm/Support/IRBuilder.h>
  48 #else
  49 #include <llvm/IRBuilder.h>


















  50 #endif


  51 #include <llvm/Support/Threading.h>
  52 #include <llvm/Support/TargetSelect.h>
  53 #include <llvm/Type.h>
  54 #include <llvm/ExecutionEngine/JITMemoryManager.h>
  55 #include <llvm/Support/CommandLine.h>
  56 #include <llvm/ExecutionEngine/MCJIT.h>
  57 #include <llvm/ExecutionEngine/JIT.h>
  58 #include <llvm/ADT/StringMap.h>
  59 #include <llvm/Support/Debug.h>
  60 #include <llvm/Support/Host.h>
  61 
  62 #include <map>
  63 
  64 #ifdef assert
  65   #undef assert
  66 #endif
  67 
  68 // from hotspot/src/share/vm/utilities/debug.hpp
  69 #ifdef ASSERT
  70 #ifndef USE_REPEATED_ASSERTS
  71 #define assert(p, msg)                                                       \
  72 do {                                                                         \
  73   if (!(p)) {                                                                \




  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #ifndef SHARE_VM_SHARK_LLVMHEADERS_HPP
  27 #define SHARE_VM_SHARK_LLVMHEADERS_HPP
  28 
  29 #ifdef assert
  30   #undef assert
  31 #endif
  32 
  33 #ifdef DEBUG
  34   #define SHARK_DEBUG
  35   #undef DEBUG
  36 #endif
  37 
  38 #include <llvm/Analysis/Verifier.h>
  39 #include <llvm/ExecutionEngine/ExecutionEngine.h>
  40 
  41 // includes specific to each version
  42 #if SHARK_LLVM_VERSION <= 31
  43 #include <llvm/Support/IRBuilder.h>
  44 #include <llvm/Type.h>
  45 #include <llvm/Argument.h>
  46 #include <llvm/Constants.h>
  47 #include <llvm/DerivedTypes.h>

  48 #include <llvm/Instructions.h>
  49 #include <llvm/LLVMContext.h>
  50 #include <llvm/Module.h>
  51 #elif SHARK_LLVM_VERSION <= 32


  52 #include <llvm/IRBuilder.h>
  53 #include <llvm/Type.h>
  54 #include <llvm/Argument.h>
  55 #include <llvm/Constants.h>
  56 #include <llvm/DerivedTypes.h>
  57 #include <llvm/Instructions.h>
  58 #include <llvm/LLVMContext.h>
  59 #include <llvm/Module.h>
  60 #else // SHARK_LLVM_VERSION <= 34
  61 #include <llvm/IR/IRBuilder.h>
  62 #include <llvm/IR/Argument.h>
  63 #include <llvm/IR/Constants.h>
  64 #include <llvm/IR/DerivedTypes.h>
  65 #include <llvm/ExecutionEngine/ExecutionEngine.h>
  66 #include <llvm/IR/Instructions.h>
  67 #include <llvm/IR/LLVMContext.h>
  68 #include <llvm/IR/Module.h>
  69 #include <llvm/ADT/StringRef.h>
  70 #include <llvm/IR/Type.h>
  71 #endif
  72 
  73 // common includes
  74 #include <llvm/Support/Threading.h>
  75 #include <llvm/Support/TargetSelect.h>

  76 #include <llvm/ExecutionEngine/JITMemoryManager.h>
  77 #include <llvm/Support/CommandLine.h>
  78 #include <llvm/ExecutionEngine/MCJIT.h>
  79 #include <llvm/ExecutionEngine/JIT.h>
  80 #include <llvm/ADT/StringMap.h>
  81 #include <llvm/Support/Debug.h>
  82 #include <llvm/Support/Host.h>
  83 
  84 #include <map>
  85 
  86 #ifdef assert
  87   #undef assert
  88 #endif
  89 
  90 // from hotspot/src/share/vm/utilities/debug.hpp
  91 #ifdef ASSERT
  92 #ifndef USE_REPEATED_ASSERTS
  93 #define assert(p, msg)                                                       \
  94 do {                                                                         \
  95   if (!(p)) {                                                                \