search for: llvm_minor_version

Displaying 3 results from an estimated 3 matches for "llvm_minor_version".

Did you mean: llvm_major_version
2011 May 31
2
[LLVMdev] How to identify LLVM version?
Hi, all I'd like to write a code that can build different codes based on LLVM version. Like code snippets in the below. #ifdef __LLVM_29__ PHINode *PN = Builder.CreatePHI (Type::getDoubleTy(getGlobalContext()), 2, "iftmp"); #elif __LLVM_28__ PHINode *PN = Builder.CreatePHI (Type::getDoubleTy(getGlobalContext()), "iftmp"); #else assert ("wrong
2011 May 31
0
[LLVMdev] How to identify LLVM version?
...29__, > __LLVM_28__), but I couldn't find them yet. llvm/Config/config.h defines PACKAGE_VERSION to a string like "3.0", but I'm afraid that it is not very convenient for your purposes. To the developers: maybe it is a good idea to define something like LLVM_MAJOR_VERSION and LLVM_MINOR_VERSION ? Preferably in llvm-config.h
2011 May 31
2
[LLVMdev] How to identify LLVM version?
Hi Óscar, > To the developers: maybe it is a good idea to define something like > LLVM_MAJOR_VERSION and LLVM_MINOR_VERSION ? Preferably in llvm-config.h probably it's best to just go ahead and implement this (with PACKAGE_VERSION being auto-computed from these) and see if anyone objects :) Ciao, Duncan.