[opengtl-commits] [291] update version to 0.9.5 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 291
Author: cyrille
Date: 2008-07-02 00:20:36 +0200 (Wed, 02 Jul 2008)
Log Message:
-----------
update version to 0.9.5
minor style adjustement
Modified Paths:
--------------
trunk/OpenGTL/OpenGTL/GTLCore/ExpressionResult_p.cpp
trunk/OpenGTL/OpenGTL/GTLCore/Version.h
trunk/OpenGTL/OpenGTL/GTLCore/VirtualMachine_p.cpp
trunk/OpenGTL/OpenGTL/GTLCore/Visitor_p.cpp
Modified: trunk/OpenGTL/OpenGTL/GTLCore/ExpressionResult_p.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/ExpressionResult_p.cpp 2008-07-01 22:19:54 UTC (rev 290)
+++ trunk/OpenGTL/OpenGTL/GTLCore/ExpressionResult_p.cpp 2008-07-01 22:20:36 UTC (rev 291)
@@ -63,7 +63,10 @@
{
GTL_ASSERT( _constant );
GTL_ASSERT( _type );
- GTL_ASSERT( _constant->getType() == _type->d->type() or _constant->getType() == _type->d->asArgumentType() or llvm::isa<llvm::ArrayType>(_constant->getType()) );
+ GTL_DEBUG( *_constant->getType() << " " << *_type );
+ GTL_ASSERT( _constant->getType() == _type->d->type()
+ or _constant->getType() == _type->d->asArgumentType()
+ or llvm::isa<llvm::ArrayType>(_constant->getType()) );
d->valueOrConstant.constant = _constant;
d->isConstant = true;
d->functionResult = _functionResult;
Modified: trunk/OpenGTL/OpenGTL/GTLCore/Version.h
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/Version.h 2008-07-01 22:19:54 UTC (rev 290)
+++ trunk/OpenGTL/OpenGTL/GTLCore/Version.h 2008-07-01 22:20:36 UTC (rev 291)
@@ -25,10 +25,10 @@
const char* LibraryName = "Open Graphics Transformation Languages Core";
const char* LibraryCopyright = "Copyright (c) 2007-2008 Cyrille Berger (cberger@xxxxxxxxxxx)";
const char* LibraryLicence = "GNU Lesser General Public License Version 2";
- const char* LibraryVersionString = "0.9.4";
+ const char* LibraryVersionString = "0.9.5";
int LibraryVersionMajor = 0;
int LibraryVersionMinor = 9;
- int LibraryVersionRevision = 4;
+ int LibraryVersionRevision = 5;
}
#endif
Modified: trunk/OpenGTL/OpenGTL/GTLCore/VirtualMachine_p.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/VirtualMachine_p.cpp 2008-07-01 22:19:54 UTC (rev 290)
+++ trunk/OpenGTL/OpenGTL/GTLCore/VirtualMachine_p.cpp 2008-07-01 22:20:36 UTC (rev 291)
@@ -44,11 +44,12 @@
VirtualMachine::VirtualMachine() : d(new Private)
{
d->executionEngine = 0;
+#if 1
char** argv = new char*[2];
argv[0] = const_cast<char*>( "GTLVM");
-// argv[1] = const_cast<char*>( "-mcpu=i386" ); // WE ARE NOT AT A HACK MORE
argv[1] = const_cast<char*>( "-mattr=-3dnow,-3dnowa,-mmx,-sse,-sse2,-sse3,-ssse3" ); // WE ARE NOT AT A HACK MORE
llvm::cl::ParseCommandLineOptions(2, argv, ""); // DISABLE MMX/SSE TODO check if more recent version of llvm support vectors in structure
+#endif
GTLCore::String errorMessage;
d->executionEngine = llvm::ExecutionEngine::create( new llvm::ExistingModuleProvider( new llvm::Module("dummy") ), false, &errorMessage);
GTL_DEBUG("Error while creating execution engine : " << errorMessage);
Modified: trunk/OpenGTL/OpenGTL/GTLCore/Visitor_p.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/Visitor_p.cpp 2008-07-01 22:19:54 UTC (rev 290)
+++ trunk/OpenGTL/OpenGTL/GTLCore/Visitor_p.cpp 2008-07-01 22:20:36 UTC (rev 291)
@@ -318,6 +318,7 @@
llvm::BasicBlock* VectorVisitor::set(GenerationContext& _generationContext, llvm::BasicBlock* _currentBlock, llvm::Value* _pointer, const Type* _pointerType, llvm::Value* _value, const Type* _valueType, bool _allocatedInMemory) const
{
GTL_ASSERT( _pointerType->dataType() == Type::VECTOR );
+ GTL_DEBUG( "value = " << *_value << " type = " << *_valueType );
new llvm::StoreInst(
_generationContext.codeGenerator()->convertValueTo( _currentBlock, _value, _valueType, _pointerType ),
_pointer, "", _currentBlock);