Displaying 19 results from an estimated 19 matches for "llvm_version".
2009 May 18
2
[LLVMdev] [PATCH] llvm-config: add svn revision to --version
...hark JIT we use the llvm-config version to make
the icedtea code compatible with api changes in llvm.
I belive you are trying to do something similarwith LDC. This can be
done without changing the llvm codebase.
I suggest the following:
add to the LDC configure.
LLVM_CFLAGS="$LLVM_CFLAGS -DLLVM_VERSION=`$LLVM_CONFIG --version | sed 's/\.//;s/svn.*//'`"
this will take the llvm-config --version output and truncates the versionnumber from
2.6svn to 26
now the LLVM_VERSION can be used in your source code like this:
#if LLVM_VERSION >= 26
/*llvm 2.6 and above compatible code*/
#end...
2009 May 18
0
[LLVMdev] [PATCH] llvm-config: add svn revision to --version
...to make
> the icedtea code compatible with api changes in llvm.
> I belive you are trying to do something similarwith LDC. This can be
> done without changing the llvm codebase.
>
> I suggest the following:
> add to the LDC configure.
>
> LLVM_CFLAGS="$LLVM_CFLAGS -DLLVM_VERSION=`$LLVM_CONFIG --version | sed 's/\.//;s/svn.*//'`"
>
> this will take the llvm-config --version output and truncates the versionnumber from
>
> 2.6svn to 26
>
> now the LLVM_VERSION can be used in your source code like this:
>
> #if LLVM_VERSION >= 26
>...
2014 Sep 11
3
[LLVMdev] patch for DragonEgg 3.3
Hi - attached is a patch to enable building DragonEgg (x86_64) for LLVM3.3 and LLVM3.4. That is, add these changes to the 3.3 release, and it becomes possible to build DragonEgg against a llvm3.4 compiler.
Regards,
Richard Gorton
Cognitive Electronics
rcgorton at cog-e.com
----------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name:
2010 Mar 11
0
[LLVMdev] Request: Add a LLVM_VERSION define to llvm-c/core.h or llvm/Config/config.h
Hi,
Would it be possible to add a define of the LLVM version in the headers?
Something like
#define LLVM_VERSION 0x0207
or
#define LLVM_VERSION_MAJOR 2
#define LLVM_VERSION_MINOR 7
This would simplify supporting more than one LLVM version (typically
latest stable and head) from external projects.
We are using some complicated logic to achieve the above with from
"llvm-config --version", but...
2009 May 18
3
[LLVMdev] [PATCH] llvm-config: add svn revision to --version
...code compatible with api changes in llvm.
>> I belive you are trying to do something similarwith LDC. This can be
>> done without changing the llvm codebase.
>>
>> I suggest the following:
>> add to the LDC configure.
>>
>> LLVM_CFLAGS="$LLVM_CFLAGS -DLLVM_VERSION=`$LLVM_CONFIG --version | sed 's/\.//;s/svn.*//'`"
>>
>> this will take the llvm-config --version output and truncates the versionnumber from
>>
>> 2.6svn to 26
>>
>> now the LLVM_VERSION can be used in your source code like this:
>>
>> #...
2009 May 18
0
[LLVMdev] [PATCH] llvm-config: add svn revision to --version
Benjamin Kramer wrote:
> At the moment llvm-config outputs "2.6svn" if llvm is build from trunk
>
> $ llvm-config --version
> 2.6svn
>
> Some external projects (built out-of-tree) need to know which revision
> of llvm is installed. LDC currently asks llvm-config --src-root for the
> source directory and then parses svn info's output to get the revision
2009 May 18
4
[LLVMdev] [PATCH] llvm-config: add svn revision to --version
At the moment llvm-config outputs "2.6svn" if llvm is build from trunk
$ llvm-config --version
2.6svn
Some external projects (built out-of-tree) need to know which revision
of llvm is installed. LDC currently asks llvm-config --src-root for
the source directory and then parses svn info's output to get the
revision number. This requires the user to keep the llvm source tree
2013 Jun 07
0
[LLVMdev] [cfe-dev] [3.3 Release] 3.3rc3 Now Available
...; RPATH
>
$ORIGIN/../lib:/home/aadgrand/tmp/LLVM-3.3rc3/rc3/Phase3/Release+Asserts/llvmCore-3.3-rc3.obj/Release+Asserts/bin
To avoid such behavior [1] , in Debian and Ubuntu packages, I am doing:
chrpath -d $(TARGET_BUILD)/Release/bin/clang
chrpath -d `find $(CURDIR)/debian/tmp/usr/lib/llvm-$(LLVM_VERSION)/bin/
-type f -executable`
Sylvestre
[1] http://wiki.debian.org/RpathIssue
2012 Dec 07
2
[LLVMdev] dragonegg now requires clang
...IN_OBJECTS) $(TARGET_OBJECT) $(TARGET_UTIL_OBJECTS)
-CPP_OPTIONS+=$(CPPFLAGS) $(shell $(LLVM_CONFIG) --cppflags) \
+CPP_OPTIONS+=$(CPPFLAGS) $(shell $(LLVM_CONFIG) --cppflags | sed -e 's/-Wcovered-switch-default//') \
-fno-rtti \
-MD -MP \
-DIN_GCC -DLLVM_VERSION=\"$(LLVM_VERSION)\" \
so that FSF gcc 4.7.2 can be used to build dragonegg again.
Jack
>
> Ciao, Duncan.
>
> On 07/12/12 18:11, Jack Howarth wrote:
>> Duncan,
>> I am unable to complile dragonegg 3.2 with FSF gcc 4.7 due the the
>> compiler err...
2012 Dec 07
0
[LLVMdev] dragonegg now requires clang
...TARGET_UTIL_OBJECTS)
>
> -CPP_OPTIONS+=$(CPPFLAGS) $(shell $(LLVM_CONFIG) --cppflags) \
> +CPP_OPTIONS+=$(CPPFLAGS) $(shell $(LLVM_CONFIG) --cppflags | sed -e 's/-Wcovered-switch-default//') \
> -fno-rtti \
> -MD -MP \
> -DIN_GCC -DLLVM_VERSION=\"$(LLVM_VERSION)\" \
>
> so that FSF gcc 4.7.2 can be used to build dragonegg again.
> Jack
>
>>
>> Ciao, Duncan.
>>
>> On 07/12/12 18:11, Jack Howarth wrote:
>>> Duncan,
>>> I am unable to complile dragonegg 3.2 with F...
2007 Sep 20
1
[LLVMdev] Valgrind Help Needed
On Sep 19, 2007, at 5:41 PM, Devang Patel wrote:
> On Sep 19, 2007, at 4:48 PM, Bill Wendling wrote:
>
> In llvm-backend.cpp :
>
> 1086 if (GV->getName() != Name) {
> 1087 Function *F = TheModule->getFunction(Name);
> 1088 assert(F && F->isDeclaration() && "A function turned
> into a global?");
> 1089
2013 Jun 06
5
[LLVMdev] [cfe-dev] [3.3 Release] 3.3rc3 Now Available
It's probably PR12517.
Looking at the clang binary, it's got a /home/ dir in RPATH:
$ objdump -p clang+llvm-3.3rc3-Ubuntu-12.04.2-x86_64/bin/clang | grep RPATH
RPATH
$ORIGIN/../lib:/home/aadgrand/tmp/LLVM-3.3rc3/rc3/Phase3/Release+Asserts/llvmCore-3.3-rc3.obj/Release+Asserts/bin
This will slow things down if the system tries to automount /home/aadgrand.
Maybe we should merge r182559
2012 Dec 09
1
[LLVMdev] dragonegg now requires clang
...ple-darwin12.2.0\" \
>>>> -g -DENABLE_LTO -I/sw/include -I/sw/opt/llvm-3.2/include -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -Wcovered-switch-default -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-rtti -MD -MP -DIN_GCC -DLLVM_VERSION=\"3.2svn\" -DGCC_MAJOR=4 -DGCC_MINOR=7 -DGCC_MICRO=2 -I/sw/src/fink.build/dragonegg-gcc47-3.2-0/dragonegg-3.2/include -isystem/sw/lib/gcc4.7/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/plugin/include -Wall -Wextra -DENABLE_LLVM_PLUGINS -I/sw/opt/llvm-3.2/include -fPIC -fvisibility-inlines-hi...
2012 Dec 07
0
[LLVMdev] dragonegg now requires clang
...ot;x86_64-apple-darwin12.2.0\" \
> -g -DENABLE_LTO -I/sw/include -I/sw/opt/llvm-3.2/include -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -Wcovered-switch-default -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-rtti -MD -MP -DIN_GCC -DLLVM_VERSION=\"3.2svn\" -DGCC_MAJOR=4 -DGCC_MINOR=7 -DGCC_MICRO=2 -I/sw/src/fink.build/dragonegg-gcc47-3.2-0/dragonegg-3.2/include -isystem/sw/lib/gcc4.7/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/plugin/include -Wall -Wextra -DENABLE_LLVM_PLUGINS -I/sw/opt/llvm-3.2/include -fPIC -fvisibility-inlines-hi...
2015 Dec 11
2
bitcode versioning
Hi Mehdi and my apologies for the delay in responding - the day job got in the way :-)
Our target is still out-of-tree so my reasons for extending the IR would be eliminated if we were a proper part of LLVM, which I would like to do when the time is right for us.
My extensions are quite simple really, and I expect that they will be wanted in the TRUNK sometime anyway.
At the moment I only have
2012 Dec 07
2
[LLVMdev] dragonegg now requires clang
...=\"x86_64-apple-darwin12.2.0\" \
-g -DENABLE_LTO -I/sw/include -I/sw/opt/llvm-3.2/include -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -Wcovered-switch-default -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-rtti -MD -MP -DIN_GCC -DLLVM_VERSION=\"3.2svn\" -DGCC_MAJOR=4 -DGCC_MINOR=7 -DGCC_MICRO=2 -I/sw/src/fink.build/dragonegg-gcc47-3.2-0/dragonegg-3.2/include -isystem/sw/lib/gcc4.7/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/plugin/include -Wall -Wextra -DENABLE_LLVM_PLUGINS -I/sw/opt/llvm-3.2/include -fPIC -fvisibility-inlines-hi...
2015 Sep 04
5
RFC: LTO should use -disable-llvm-verifier
...not gonna play well.
> Unless you are only including the C API wrapper in ld64, but in this case I’m not sure I understand "using the preprocessor to make the code LLVM-version-dependent”.
Yes, I mean only the C API wrapper, but the code would look like this:
void lto_do_something() {
#if llvm_version > 123
use_new_api();
#else
use_old_api();
#endif
}
for however many versions of LLVM you need to care about.
> You will be able to build ld64 independently of LLVM, but how about at runtime? The compiler needs to ship a dynamic library that will be loaded by the linker, and there is sti...
2015 Sep 04
2
RFC: LTO should use -disable-llvm-verifier
On Fri, Sep 04, 2015 at 11:13:43AM -0700, Mehdi Amini wrote:
>
> > On Sep 4, 2015, at 11:03 AM, Eric Christopher <echristo at gmail.com> wrote:
> >
> >
> >
> > On Fri, Sep 4, 2015 at 12:48 AM Mehdi Amini <mehdi.amini at apple.com <mailto:mehdi.amini at apple.com>> wrote:
> >> On Sep 4, 2015, at 12:22 AM, Eric Christopher <echristo
2016 Dec 19
1
How to create Debian packages for release 3.9.0
Hello,
Le 12/12/2016 à 18:29, Hans Wennborg a écrit :
> +Sylvestre who knows about these things.
>
> On Thu, Dec 8, 2016 at 2:24 AM, Kris van Rens via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>> L.S.,
>>
>> I'm currently in the process of creating Debian packages for
>> clang/llvm release 3.9.0. For this I'm using the steps as explained on