-
diff -up OpenCTL/OpenCTL/compiler/Compiler.cpp.jx OpenCTL/OpenCTL/compiler/Compiler.cpp
old
|
new
|
|
27 | 27 | #include <climits> |
28 | 28 | |
29 | 29 | // LLVM |
30 | | #include <llvm/InstrTypes.h> |
| 30 | #include <llvm/IR/InstrTypes.h> |
31 | 31 | // #include <llvm/Linker.h> |
32 | | #include <llvm/DerivedTypes.h> |
33 | | #include <llvm/Module.h> |
| 32 | #include <llvm/IR/DerivedTypes.h> |
| 33 | #include <llvm/IR/Module.h> |
34 | 34 | // #include <llvm/Transforms/Utils/Cloning.h> |
35 | 35 | // Library Loader |
36 | 36 | #ifdef LLVM_27_OR_28 |
… |
… |
bool Compiler::compile(bool _isStandardL |
214 | 214 | return success; |
215 | 215 | } |
216 | 216 | |
217 | | #include <llvm/ValueSymbolTable.h> |
| 217 | #include <llvm/IR/ValueSymbolTable.h> |
218 | 218 | |
219 | 219 | bool Compiler::importModule(const GTLCore::String& name) |
220 | 220 | { |
-
diff -up OpenCTL/OpenCTL/compiler/ParserNG.cpp.jx OpenCTL/OpenCTL/compiler/ParserNG.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "ParserNG.h" |
21 | 21 | |
22 | | #include <llvm/Constants.h> |
23 | | #include <llvm/DerivedTypes.h> |
24 | | #include <llvm/Type.h> |
| 22 | #include <llvm/IR/Constants.h> |
| 23 | #include <llvm/IR/DerivedTypes.h> |
| 24 | #include <llvm/IR/Type.h> |
25 | 25 | |
26 | 26 | #include <GTLCore/LLVMBackend/CodeGenerator_p.h> |
27 | 27 | #include <GTLCore/CompilationMessage.h> |
-
diff -up OpenCTL/OpenCTL/Module.cpp.jx OpenCTL/OpenCTL/Module.cpp
old
|
new
|
|
38 | 38 | using namespace OpenCTL; |
39 | 39 | |
40 | 40 | // LLVM |
41 | | #include <llvm/Module.h> |
| 41 | #include <llvm/IR/Module.h> |
42 | 42 | #include <llvm/Bitcode/ReaderWriter.h> |
43 | 43 | #ifdef LLVM_27_OR_28 |
44 | 44 | #include <llvm/System/Path.h> |
… |
… |
using namespace OpenCTL; |
47 | 47 | #include <llvm/Support/Path.h> |
48 | 48 | #include <llvm/Support/DynamicLibrary.h> |
49 | 49 | #endif |
50 | | #include <llvm/Module.h> |
51 | | #include <llvm/LLVMContext.h> |
| 50 | #include <llvm/IR/LLVMContext.h> |
52 | 51 | |
53 | 52 | struct Module::Private { |
54 | 53 | Private() : moduleData(0), isStandardLibrary(false) {} |
-
diff -up OpenCTL/OpenCTL/Program.cpp.jx OpenCTL/OpenCTL/Program.cpp
old
|
new
|
|
20 | 20 | #include "Program.h" |
21 | 21 | |
22 | 22 | // LLVM |
23 | | #include <llvm/DerivedTypes.h> |
24 | | #include <llvm/Instructions.h> |
25 | | #include <llvm/Module.h> |
| 23 | #include <llvm/IR/DerivedTypes.h> |
| 24 | #include <llvm/IR/Instructions.h> |
| 25 | #include <llvm/IR/Module.h> |
26 | 26 | #include <llvm/Transforms/Utils/Cloning.h> |
27 | 27 | |
28 | 28 | // Passes |
29 | 29 | #include <llvm/PassManager.h> |
30 | 30 | #include <llvm/Analysis/LoopPass.h> |
31 | 31 | #include <llvm/Analysis/Verifier.h> |
32 | | #include <llvm/GlobalVariable.h> |
| 32 | #include <llvm/IR/GlobalVariable.h> |
33 | 33 | |
34 | 34 | // GTLCore |
35 | 35 | #include "GTLCore/Buffer.h" |
-
diff -up OpenGTL/GTLCore/AST/AccessorExpression.cpp.jx OpenGTL/GTLCore/AST/AccessorExpression.cpp
old
|
new
|
|
20 | 20 | #include "AccessorExpression.h" |
21 | 21 | |
22 | 22 | #include <llvm/ADT/ArrayRef.h> |
23 | | #include <llvm/Constants.h> |
24 | | #include <llvm/Function.h> |
25 | | #include <llvm/Instructions.h> |
| 23 | #include <llvm/IR/Constants.h> |
| 24 | #include <llvm/IR/Function.h> |
| 25 | #include <llvm/IR/Instructions.h> |
26 | 26 | |
27 | 27 | #include "../LLVMBackend/CodeGenerator_p.h" |
28 | 28 | #include "../LLVMBackend/ExpressionResult_p.h" |
-
diff -up OpenGTL/GTLCore/AST/BinaryExpression.cpp.jx OpenGTL/GTLCore/AST/BinaryExpression.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "BinaryExpression.h" |
21 | 21 | |
22 | | #include <llvm/Instructions.h> |
| 22 | #include <llvm/IR/Instructions.h> |
23 | 23 | |
24 | 24 | #include <GTLCore/Debug.h> |
25 | 25 | #include <GTLCore/LLVMBackend/CodeGenerator_p.h> |
-
diff -up OpenGTL/GTLCore/AST/CompoundExpression.cpp.jx OpenGTL/GTLCore/AST/CompoundExpression.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "CompoundExpression.h" |
21 | 21 | |
22 | | #include <llvm/Constants.h> |
23 | | #include <llvm/DerivedTypes.h> |
24 | | #include <llvm/GlobalVariable.h> |
25 | | #include <llvm/Instructions.h> |
| 22 | #include <llvm/IR/Constants.h> |
| 23 | #include <llvm/IR/DerivedTypes.h> |
| 24 | #include <llvm/IR/GlobalVariable.h> |
| 25 | #include <llvm/IR/Instructions.h> |
26 | 26 | |
27 | 27 | #include "../LLVMBackend/CodeGenerator_p.h" |
28 | 28 | #include "../Debug.h" |
-
diff -up OpenGTL/GTLCore/AST/ConstantCompoundExpression.cpp.jx OpenGTL/GTLCore/AST/ConstantCompoundExpression.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "ConstantCompoundExpression.h" |
21 | 21 | |
22 | | #include <llvm/Constants.h> |
23 | | #include <llvm/DerivedTypes.h> |
24 | | #include <llvm/GlobalVariable.h> |
25 | | #include <llvm/Instructions.h> |
| 22 | #include <llvm/IR/Constants.h> |
| 23 | #include <llvm/IR/DerivedTypes.h> |
| 24 | #include <llvm/IR/GlobalVariable.h> |
| 25 | #include <llvm/IR/Instructions.h> |
26 | 26 | |
27 | 27 | #include "../LLVMBackend/CodeGenerator_p.h" |
28 | 28 | #include "../Debug.h" |
-
diff -up OpenGTL/GTLCore/AST/Expression.cpp.jx OpenGTL/GTLCore/AST/Expression.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "Expression.h" |
21 | 21 | |
22 | | #include <llvm/Constant.h> |
23 | | #include <llvm/Constants.h> |
24 | | #include <llvm/Function.h> |
25 | | #include <llvm/GlobalVariable.h> |
26 | | #include <llvm/Instructions.h> |
| 22 | #include <llvm/IR/Constant.h> |
| 23 | #include <llvm/IR/Constants.h> |
| 24 | #include <llvm/IR/Function.h> |
| 25 | #include <llvm/IR/GlobalVariable.h> |
| 26 | #include <llvm/IR/Instructions.h> |
27 | 27 | |
28 | 28 | #include "GTLCore/LLVMBackend/CodeGenerator_p.h" |
29 | 29 | #include "GTLCore/LLVMBackend/ExpressionResult_p.h" |
-
diff -up OpenGTL/GTLCore/AST/FunctionDeclaration.cpp.jx OpenGTL/GTLCore/AST/FunctionDeclaration.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "FunctionDeclaration.h" |
21 | 21 | |
22 | | #include <llvm/DerivedTypes.h> |
23 | | #include <llvm/Function.h> |
24 | | #include <llvm/Instructions.h> |
25 | | #include <llvm/Type.h> |
| 22 | #include <llvm/IR/DerivedTypes.h> |
| 23 | #include <llvm/IR/Function.h> |
| 24 | #include <llvm/IR/Instructions.h> |
| 25 | #include <llvm/IR/Type.h> |
26 | 26 | |
27 | 27 | #include <GTLCore/LLVMBackend/CodeGenerator_p.h> |
28 | 28 | #include <GTLCore/LLVMBackend/ExpressionResult_p.h> |
-
diff -up OpenGTL/GTLCore/AST/GarbageCollectionStatement.cpp.jx OpenGTL/GTLCore/AST/GarbageCollectionStatement.cpp
old
|
new
|
|
21 | 21 | |
22 | 22 | #include <stdlib.h> |
23 | 23 | |
24 | | #include <llvm/Constant.h> |
25 | | #include <llvm/Instructions.h> |
| 24 | #include <llvm/IR/Constant.h> |
| 25 | #include <llvm/IR/Instructions.h> |
26 | 26 | |
27 | 27 | #include "../Type.h" |
28 | 28 | #include "../LLVMBackend/CodeGenerator_p.h" |
-
diff -up OpenGTL/GTLCore/AST/Statement.cpp.jx OpenGTL/GTLCore/AST/Statement.cpp
old
|
new
|
|
21 | 21 | |
22 | 22 | // LLVM |
23 | 23 | #include <llvm/ADT/ArrayRef.h> |
24 | | #include <llvm/BasicBlock.h> |
25 | | #include <llvm/Constants.h> |
26 | | #include <llvm/Function.h> |
27 | | #include <llvm/GlobalVariable.h> |
28 | | #include <llvm/Instructions.h> |
29 | | #include <llvm/Module.h> |
| 24 | #include <llvm/IR/BasicBlock.h> |
| 25 | #include <llvm/IR/Constants.h> |
| 26 | #include <llvm/IR/Function.h> |
| 27 | #include <llvm/IR/GlobalVariable.h> |
| 28 | #include <llvm/IR/Instructions.h> |
| 29 | #include <llvm/IR/Module.h> |
30 | 30 | |
31 | 31 | // GTLCore |
32 | 32 | #include <GTLCore/LLVMBackend/CodeGenerator_p.h> |
-
diff -up OpenGTL/GTLCore/AST/Tree.cpp.jx OpenGTL/GTLCore/AST/Tree.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "Tree.h" |
21 | 21 | |
22 | | #include <llvm/Constant.h> |
23 | | #include <llvm/GlobalVariable.h> |
24 | | #include <llvm/Type.h> |
| 22 | #include <llvm/IR/Constant.h> |
| 23 | #include <llvm/IR/GlobalVariable.h> |
| 24 | #include <llvm/IR/Type.h> |
25 | 25 | |
26 | 26 | #include "FunctionDeclaration.h" |
27 | 27 | |
… |
… |
|
37 | 37 | #include "GTLCore/LLVMBackend/Visitor_p.h" |
38 | 38 | |
39 | 39 | #include "Expression.h" |
40 | | #include <llvm/Module.h> |
41 | | #include <llvm/DerivedTypes.h> |
| 40 | #include <llvm/IR/Module.h> |
| 41 | #include <llvm/IR/DerivedTypes.h> |
42 | 42 | |
43 | 43 | using namespace GTLCore::AST; |
44 | 44 | |
-
diff -up OpenGTL/GTLCore/Debug.cpp.jx OpenGTL/GTLCore/Debug.cpp
old
|
new
|
|
22 | 22 | #include <map> |
23 | 23 | #include <fstream> |
24 | 24 | |
25 | | #include <llvm/Module.h> |
26 | | #include <llvm/Value.h> |
27 | | #include <llvm/Type.h> |
| 25 | #include <llvm/IR/Module.h> |
| 26 | #include <llvm/IR/Value.h> |
| 27 | #include <llvm/IR/Type.h> |
28 | 28 | #include <llvm/Support/Path.h> |
29 | 29 | #include <llvm/Support/raw_ostream.h> |
30 | 30 | |
… |
… |
namespace GTLCore { |
418 | 418 | |
419 | 419 | #ifdef OPENGTL_ENABLE_DEBUG_OUTPUT |
420 | 420 | |
421 | | #include <llvm/DerivedTypes.h> |
422 | | #include <llvm/Function.h> |
423 | | #include <llvm/Type.h> |
| 421 | #include <llvm/IR/DerivedTypes.h> |
| 422 | #include <llvm/IR/Function.h> |
| 423 | #include <llvm/IR/Type.h> |
424 | 424 | |
425 | 425 | void compareFunctionParameters( llvm::Value* func, const std::vector<llvm::Value*>& params ) |
426 | 426 | { |
-
diff -up OpenGTL/GTLCore/FunctionCaller_p.cpp.jx OpenGTL/GTLCore/FunctionCaller_p.cpp
old
|
new
|
|
21 | 21 | |
22 | 22 | #include <llvm/ExecutionEngine/GenericValue.h> |
23 | 23 | #include <llvm/ExecutionEngine/ExecutionEngine.h> |
24 | | #include <llvm/Function.h> |
25 | | |
26 | | #include <llvm/DerivedTypes.h> // <- I don't understand why I need to include that file to be able to display llvm::Type on the standard output |
| 24 | #include <llvm/IR/Function.h> |
| 25 | #include <llvm/IR/Instructions.h> |
| 26 | #include <llvm/IR/DerivedTypes.h> // <- I don't understand why I need to include that file to be able to display llvm::Type on the standard output |
27 | 27 | |
28 | 28 | #include "VirtualMachine_p.h" |
29 | 29 | |
… |
… |
|
35 | 35 | #include "LLVMBackend/GenerationContext_p.h" |
36 | 36 | #include "ModuleData_p.h" |
37 | 37 | #include "LLVMBackend/CodeGenerator_p.h" |
38 | | #include <llvm/Instructions.h> |
39 | 38 | #include "Type_p.h" |
40 | 39 | #include <GTLCore/Parameter.h> |
41 | 40 | #include "PrimitiveTypesTraits_p.h" |
-
diff -up OpenGTL/GTLCore/Function_p.cpp.jx OpenGTL/GTLCore/Function_p.cpp
old
|
new
|
|
21 | 21 | |
22 | 22 | #include <cstdarg> |
23 | 23 | |
24 | | #include <llvm/DerivedTypes.h> |
25 | | #include <llvm/Module.h> |
26 | | #include <llvm/Type.h> |
| 24 | #include <llvm/IR/DerivedTypes.h> |
| 25 | #include <llvm/IR/Module.h> |
| 26 | #include <llvm/IR/Type.h> |
27 | 27 | |
28 | 28 | #include "Parameter.h" |
29 | 29 | |
-
diff -up OpenGTL/GTLCore/LLVMBackend/CodeGenerator_p.cpp.jx OpenGTL/GTLCore/LLVMBackend/CodeGenerator_p.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "CodeGenerator_p.h" |
21 | 21 | |
22 | | #include <llvm/CallingConv.h> |
23 | | #include <llvm/Constants.h> |
24 | | #include <llvm/Function.h> |
25 | | #include <llvm/Instructions.h> |
26 | | #include <llvm/Module.h> |
27 | | #include <llvm/Value.h> |
| 22 | #include <llvm/IR/CallingConv.h> |
| 23 | #include <llvm/IR/Constants.h> |
| 24 | #include <llvm/IR/Function.h> |
| 25 | #include <llvm/IR/Instructions.h> |
| 26 | #include <llvm/IR/Module.h> |
| 27 | #include <llvm/IR/Value.h> |
28 | 28 | |
29 | 29 | #include "GTLCore/Debug.h" |
30 | 30 | #include "ExpressionResult_p.h" |
-
diff -up OpenGTL/GTLCore/LLVMBackend/ContextManager_p.cpp.jx OpenGTL/GTLCore/LLVMBackend/ContextManager_p.cpp
old
|
new
|
|
20 | 20 | #include "ContextManager_p.h" |
21 | 21 | |
22 | 22 | #include <llvm/Support/ThreadLocal.h> |
23 | | #include <llvm/LLVMContext.h> |
| 23 | #include <llvm/IR/LLVMContext.h> |
24 | 24 | |
25 | 25 | using namespace LLVMBackend; |
26 | 26 | |
-
diff -up OpenGTL/GTLCore/LLVMBackend/ExpressionGenerationContext_p.cpp.jx OpenGTL/GTLCore/LLVMBackend/ExpressionGenerationContext_p.cpp
old
|
new
|
|
20 | 20 | #include "ExpressionGenerationContext_p.h" |
21 | 21 | |
22 | 22 | #include "GTLCore/Debug.h" |
23 | | #include <llvm/BasicBlock.h> |
| 23 | #include <llvm/IR/BasicBlock.h> |
24 | 24 | |
25 | 25 | #include "GTLCore/Macros_p.h" |
26 | 26 | |
-
diff -up OpenGTL/GTLCore/LLVMBackend/ExpressionResult_p.cpp.jx OpenGTL/GTLCore/LLVMBackend/ExpressionResult_p.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "ExpressionResult_p.h" |
21 | 21 | |
22 | | #include "llvm/Constant.h" |
23 | | #include "llvm/DerivedTypes.h" |
| 22 | #include "llvm/IR/Constant.h" |
| 23 | #include "llvm/IR/DerivedTypes.h" |
24 | 24 | |
25 | 25 | #include "../Type.h" |
26 | 26 | #include "../Type_p.h" |
-
diff -up OpenGTL/GTLCore/LLVMBackend/GenerationContext_p.cpp.jx OpenGTL/GTLCore/LLVMBackend/GenerationContext_p.cpp
old
|
new
|
|
22 | 22 | #include "GTLCore/ModuleData_p.h" |
23 | 23 | #include "GTLCore/Debug.h" |
24 | 24 | |
25 | | #include "llvm/BasicBlock.h" |
26 | | #include "llvm/Function.h" |
| 25 | #include "llvm/IR/BasicBlock.h" |
| 26 | #include "llvm/IR/Function.h" |
27 | 27 | |
28 | 28 | #include "GTLCore/AST/Statement.h" |
29 | 29 | |
-
diff -up OpenGTL/GTLCore/LLVMBackend/Visitor_p.cpp.jx OpenGTL/GTLCore/LLVMBackend/Visitor_p.cpp
old
|
new
|
|
20 | 20 | #include "Visitor_p.h" |
21 | 21 | |
22 | 22 | // LLVM |
23 | | #include <llvm/BasicBlock.h> |
24 | | #include <llvm/Constants.h> |
25 | | #include <llvm/Function.h> |
26 | | #include <llvm/Instructions.h> |
27 | | #include <llvm/Module.h> |
28 | | #include <llvm/GlobalVariable.h> |
| 23 | #include <llvm/IR/BasicBlock.h> |
| 24 | #include <llvm/IR/Constants.h> |
| 25 | #include <llvm/IR/Function.h> |
| 26 | #include <llvm/IR/Instructions.h> |
| 27 | #include <llvm/IR/Module.h> |
| 28 | #include <llvm/IR/GlobalVariable.h> |
29 | 29 | |
30 | 30 | // GTLCore |
31 | 31 | #include "CodeGenerator_p.h" |
-
diff -up OpenGTL/GTLCore/ModuleData_p.cpp.jx OpenGTL/GTLCore/ModuleData_p.cpp
old
|
new
|
|
21 | 21 | |
22 | 22 | #include <sstream> |
23 | 23 | |
24 | | #include <llvm/Module.h> |
| 24 | #include <llvm/IR/Module.h> |
25 | 25 | #include <llvm/PassManager.h> |
26 | 26 | #include <llvm/Target/TargetMachine.h> |
27 | 27 | #include <llvm/Analysis/Verifier.h> |
… |
… |
void ModuleData::doLink() |
242 | 242 | GTL_ASSERT( not m_llvmLinkedModule ); |
243 | 243 | m_llvmLinkedModule = m_llvmModule; |
244 | 244 | m_llvmModule = llvm::CloneModule( m_llvmModule ); |
245 | | llvm::Linker linker("", m_llvmLinkedModule); |
| 245 | llvm::Linker linker(m_llvmLinkedModule); |
246 | 246 | std::string errorMessage; |
247 | 247 | foreach( const llvm::Module* mod, m_linkModuleWith ) |
248 | 248 | { |
… |
… |
void ModuleData::doLink() |
270 | 270 | hide.push_back(name); |
271 | 271 | } |
272 | 272 | } |
273 | | linker.LinkInModule( clone, &errorMessage ); |
| 273 | linker.linkInModule( clone, &errorMessage ); |
274 | 274 | |
275 | 275 | GTL_DEBUG("Linking error: " << errorMessage ); |
276 | 276 | delete clone; |
277 | 277 | } |
278 | | foreach( const GTLCore::String& mod, m_linkModuleWithArchives ) |
279 | | { |
280 | | bool v = false; |
281 | | linker.LinkInArchive( llvm::sys::Path( (const std::string&) mod), v); |
282 | | } |
283 | | |
284 | | linker.releaseModule(); |
285 | 278 | |
286 | 279 | // Hide symbols |
287 | 280 | foreach(GTLCore::String name, hide) |
-
diff -up OpenGTL/GTLCore/Type.cpp.jx OpenGTL/GTLCore/Type.cpp
old
|
new
|
|
25 | 25 | |
26 | 26 | #include <iostream> |
27 | 27 | |
28 | | #include <llvm/DerivedTypes.h> |
| 28 | #include <llvm/IR/DerivedTypes.h> |
29 | 29 | |
30 | 30 | #include "wrappers/StructWrap.h" |
31 | 31 | #include "SharedPointer.h" |
-
diff -up OpenGTL/GTLCore/Type_p.cpp.jx OpenGTL/GTLCore/Type_p.cpp
old
|
new
|
|
30 | 30 | |
31 | 31 | using namespace GTLCore; |
32 | 32 | |
33 | | #include <llvm/Type.h> |
34 | | #include <llvm/DerivedTypes.h> |
| 33 | #include <llvm/IR/Type.h> |
| 34 | #include <llvm/IR/DerivedTypes.h> |
35 | 35 | |
36 | 36 | Type::StructDataMember::Information::~Information() |
37 | 37 | { |
-
diff -up OpenGTL/GTLCore/Value_p.cpp.jx OpenGTL/GTLCore/Value_p.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "Value_p.h" |
21 | 21 | |
22 | | #include <llvm/DerivedTypes.h> |
23 | | #include <llvm/Type.h> |
| 22 | #include <llvm/IR/DerivedTypes.h> |
| 23 | #include <llvm/IR/Type.h> |
24 | 24 | |
25 | 25 | #include "Debug.h" |
26 | 26 | #include "Value.h" |
-
diff -up OpenGTL/GTLCore/VariableNG_p.cpp.jx OpenGTL/GTLCore/VariableNG_p.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "VariableNG_p.h" |
21 | 21 | |
22 | | #include <llvm/Constants.h> |
23 | | #include <llvm/Instructions.h> |
| 22 | #include <llvm/IR/Constants.h> |
| 23 | #include <llvm/IR/Instructions.h> |
24 | 24 | |
25 | 25 | #include "LLVMBackend/CodeGenerator_p.h" |
26 | 26 | #include "Debug.h" |
-
diff -up OpenGTL/GTLCore/VirtualMachine_p.cpp.jx OpenGTL/GTLCore/VirtualMachine_p.cpp
old
|
new
|
|
21 | 21 | |
22 | 22 | // JIT |
23 | 23 | #include <llvm/ExecutionEngine/ExecutionEngine.h> |
24 | | #include <llvm/Module.h> |
25 | | #include <llvm/DerivedTypes.h> |
| 24 | #include <llvm/IR/Module.h> |
| 25 | #include <llvm/IR/DerivedTypes.h> |
26 | 26 | #include <llvm/Target/TargetOptions.h> |
27 | | #include <llvm/LLVMContext.h> |
| 27 | #include <llvm/IR/LLVMContext.h> |
28 | 28 | #include <llvm/Support/CommandLine.h> |
29 | 29 | #include <llvm/Support/Threading.h> |
30 | 30 | #include <llvm/Support/ErrorHandling.h> |
… |
… |
struct VirtualMachine::Private { |
48 | 48 | VirtualMachine* VirtualMachine::Private::virtualMachine = 0; |
49 | 49 | int VirtualMachine::Private::optimLevel = 2; |
50 | 50 | |
51 | | void gtl_llvm_error_handler(void *user_data, const std::string& reason) |
| 51 | void gtl_llvm_error_handler(void *user_data, const std::string& reason, |
| 52 | bool gen_crash_diag) |
52 | 53 | { |
53 | 54 | GTL_ABORT(reason); |
54 | 55 | } |
… |
… |
VirtualMachine::VirtualMachine() : d(new |
58 | 59 | { |
59 | 60 | d->executionEngine = 0; |
60 | 61 | |
61 | | #ifdef LLVM_27 |
62 | | llvm::llvm_install_error_handler(>l_llvm_error_handler); |
63 | | #else |
64 | | llvm::install_fatal_error_handler(>l_llvm_error_handler); |
65 | | #endif |
| 62 | llvm::install_fatal_error_handler(gtl_llvm_error_handler); |
66 | 63 | |
67 | 64 | llvm::llvm_start_multithreaded(); |
68 | 65 | |
-
diff -up OpenGTL/GTLFragment/Compiler_p.cpp.jx OpenGTL/GTLFragment/Compiler_p.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "Compiler_p.h" |
21 | 21 | |
22 | | #include <llvm/Module.h> |
| 22 | #include <llvm/IR/Module.h> |
23 | 23 | #include <llvm/PassManager.h> |
24 | 24 | |
25 | 25 | #include "GTLCore/AST/Expression.h" |
-
diff -up OpenGTL/GTLFragment/Library.cpp.jx OpenGTL/GTLFragment/Library.cpp
old
|
new
|
|
22 | 22 | |
23 | 23 | #include <sstream> |
24 | 24 | |
25 | | #include <llvm/Module.h> |
| 25 | #include <llvm/IR/Module.h> |
26 | 26 | #include <llvm/Support/DynamicLibrary.h> |
27 | | #include <llvm/LLVMContext.h> |
| 27 | #include <llvm/IR/LLVMContext.h> |
28 | 28 | |
29 | 29 | #include "GTLCore/CompilationMessage.h" |
30 | 30 | #include "GTLCore/Function.h" |
-
diff -up OpenGTL/GTLFragment/Wrapper.cpp.jx OpenGTL/GTLFragment/Wrapper.cpp
old
|
new
|
|
29 | 29 | |
30 | 30 | #include "Library.h" |
31 | 31 | #include <GTLCore/Function_p.h> |
32 | | #include <llvm/Module.h> |
| 32 | #include <llvm/IR/Module.h> |
33 | 33 | #include <GTLCore/Type_p.h> |
34 | 34 | |
35 | 35 | using namespace GTLFragment; |
-
diff -up OpenShiva/OpenShiva/CodeGenerator_p.cpp.jx OpenShiva/OpenShiva/CodeGenerator_p.cpp
old
|
new
|
|
21 | 21 | |
22 | 22 | #include <vector> |
23 | 23 | |
24 | | #include <llvm/CallingConv.h> |
25 | | #include <llvm/Constants.h> |
26 | | #include <llvm/Constant.h> |
27 | | #include <llvm/DerivedTypes.h> |
28 | | #include <llvm/Function.h> |
29 | | #include <llvm/Instructions.h> |
30 | | #include <llvm/Module.h> |
31 | | #include <llvm/Value.h> |
| 24 | #include <llvm/IR/CallingConv.h> |
| 25 | #include <llvm/IR/Constants.h> |
| 26 | #include <llvm/IR/Constant.h> |
| 27 | #include <llvm/IR/DerivedTypes.h> |
| 28 | #include <llvm/IR/Function.h> |
| 29 | #include <llvm/IR/Instructions.h> |
| 30 | #include <llvm/IR/Module.h> |
| 31 | #include <llvm/IR/Value.h> |
32 | 32 | |
33 | 33 | #include "GTLCore/LLVMBackend/CodeGenerator_p.h" |
34 | 34 | #include "GTLCore/LLVMBackend/ExpressionResult_p.h" |
-
diff -up OpenShiva/OpenShiva/ColorToPixelOverloadOperatorFactory_p.cpp.jx OpenShiva/OpenShiva/ColorToPixelOverloadOperatorFactory_p.cpp
old
|
new
|
|
28 | 28 | #include "CodeGenerator_p.h" |
29 | 29 | #include <GTLFragment/wrappers/ColorWrap_p.h> |
30 | 30 | #include <GTLCore/Type_p.h> |
31 | | #include <llvm/Value.h> |
32 | | #include <llvm/DerivedTypes.h> |
33 | | #include <llvm/CallingConv.h> |
34 | | #include <llvm/Module.h> |
| 31 | #include <llvm/IR/Value.h> |
| 32 | #include <llvm/IR/DerivedTypes.h> |
| 33 | #include <llvm/IR/CallingConv.h> |
| 34 | #include <llvm/IR/Module.h> |
35 | 35 | #include <GTLCore/LLVMBackend/ExpressionGenerationContext_p.h> |
36 | 36 | #include <GTLCore/LLVMBackend/CodeGenerator_p.h> |
37 | | #include <llvm/Instructions.h> |
| 37 | #include <llvm/IR/Instructions.h> |
38 | 38 | #include <GTLCore/TypesManager.h> |
39 | 39 | |
40 | 40 | using namespace OpenShiva; |
-
diff -up OpenShiva/OpenShiva/Kernel.cpp.jx OpenShiva/OpenShiva/Kernel.cpp
old
|
new
|
|
22 | 22 | #include <sstream> |
23 | 23 | #include <fstream> |
24 | 24 | |
25 | | #include <llvm/Module.h> |
| 25 | #include <llvm/IR/Module.h> |
26 | 26 | |
27 | 27 | #include "GTLCore/CompilationMessage.h" |
28 | 28 | #include "GTLCore/Function.h" |
… |
… |
|
48 | 48 | #include "wrappers/ImageWrap_p.h" |
49 | 49 | #include "wrappers/RegionWrap_p.h" |
50 | 50 | #include <GTLCore/AST/Tree.h> |
51 | | #include <llvm/DerivedTypes.h> |
| 51 | #include <llvm/IR/DerivedTypes.h> |
52 | 52 | |
53 | 53 | using namespace OpenShiva; |
54 | 54 | |
-
diff -up OpenShiva/OpenShiva/PixelConvertExpressionFactory_p.cpp.jx OpenShiva/OpenShiva/PixelConvertExpressionFactory_p.cpp
old
|
new
|
|
19 | 19 | |
20 | 20 | #include "PixelConvertExpressionFactory_p.h" |
21 | 21 | |
22 | | #include <llvm/Instructions.h> |
| 22 | #include <llvm/IR/Instructions.h> |
| 23 | #include <llvm/IR/Function.h> |
23 | 24 | |
24 | 25 | #include "GTLCore/Type.h" |
25 | 26 | #include "GTLCore/AST/ConvertExpression.h" |
… |
… |
|
34 | 35 | #include <GTLCore/VariableNG_p.h> |
35 | 36 | #include <GTLCore/LLVMBackend/Visitor_p.h> |
36 | 37 | #include <GTLFragment/wrappers/ColorWrap_p.h> |
37 | | #include <llvm/Function.h> |
38 | 38 | #include <GTLCore/Type_p.h> |
39 | 39 | |
40 | 40 | using namespace OpenShiva; |
-
diff -up OpenShiva/OpenShiva/PixelVisitor_p.cpp.jx OpenShiva/OpenShiva/PixelVisitor_p.cpp
old
|
new
|
|
20 | 20 | #include "PixelVisitor_p.h" |
21 | 21 | |
22 | 22 | // LLVM |
23 | | #include <llvm/Constant.h> |
24 | | #include <llvm/Constants.h> |
25 | | #include <llvm/BasicBlock.h> |
26 | | #include <llvm/Instructions.h> |
27 | | #include <llvm/Function.h> |
| 23 | #include <llvm/IR/Constant.h> |
| 24 | #include <llvm/IR/Constants.h> |
| 25 | #include <llvm/IR/BasicBlock.h> |
| 26 | #include <llvm/IR/Instructions.h> |
| 27 | #include <llvm/IR/Function.h> |
28 | 28 | |
29 | 29 | #include "GTLCore/LLVMBackend/ExpressionResult_p.h" |
30 | 30 | #include "GTLCore/LLVMBackend/ExpressionGenerationContext_p.h" |
-
diff -up OpenShiva/OpenShiva/Wrapper_p.cpp.jx OpenShiva/OpenShiva/Wrapper_p.cpp
old
|
new
|
|
22 | 22 | #include <map> |
23 | 23 | #include <vector> |
24 | 24 | |
25 | | #include <llvm/DerivedTypes.h> |
26 | | #include <llvm/Function.h> |
27 | | #include <llvm/Module.h> |
| 25 | #include <llvm/IR/DerivedTypes.h> |
| 26 | #include <llvm/IR/Function.h> |
| 27 | #include <llvm/IR/Module.h> |
28 | 28 | |
29 | 29 | #include "GTLCore/Function_p.h" |
30 | 30 | #include "GTLCore/Macros.h" |