search for: __llvm_28__

Displaying 2 results from an estimated 2 matches for "__llvm_28__".

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 version"); #endif I've been trying to find something like these (__LLVM_29__, __LLVM_28__), but I couldn't find them yet. Thanks for your help. Regard, Kangko...
2011 May 31
0
[LLVMdev] How to identify LLVM version?
...; writes: > 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 version"); > #endif > > I've been trying to find something like these (__LLVM_29__, > __LLVM_28__), but I couldn't find them yet. llvm...