Displaying 20 results from an estimated 300 matches similar to: "[LLVMdev] Proper values for LLVMCreateTargetMachine"
2012 Mar 05
3
[LLVMdev] Problem using march=c
Hello everyone,
I've been trying to generate a C file using the llc tool, but I'm
having a problem. I'm using a single Hello World program in C, and
executing the following passes:
clang -emit-llvm -c -o hello.bc hello.c # getting the bit code of hello.c
llc -march=c hello.bc # generating the
hello.cbe.c file using the llvm C backend
So far, nothing weird
2012 Aug 20
1
[LLVMdev] llmv3.0 CBackend convert IR to IR error
Thank you for answering my E-mail.
According to http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-March/047989.html,
I open the link:
https://hpcforge.org/scm/viewvc.php/trunk/patches/llvm.gpu.patch?root=kernelgen&view=markup
https://hpcforge.org/scm/viewvc.php/trunk/patches/llvm.patch?revision=591&root=kernelgen&view=markup
The result is:
SCM Repository
An Exception Has Occurred
2012 Mar 05
0
[LLVMdev] Problem using march=c
Hi Cristianno,
This problem has been around for a while, ourselves we solve it with the following patches:
https://hpcforge.org/scm/viewvc.php/trunk/patches/llvm.gpu.patch?root=kernelgen&view=markup
https://hpcforge.org/scm/viewvc.php/trunk/patches/llvm.patch?revision=591&root=kernelgen&view=markup
Please feel free to apply them, they *should* work for you even with the latest llvm
2012 Aug 18
0
[LLVMdev] llmv3.0 CBackend convert IR to IR error
Hi,
First of all, please note: as of v3.1, C backend has been thrown away
for being "buggy" and "unmaintained".
Several months ago there was a similar question, and it was solved.
Please see the patch attached here:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-March/047989.html
Best,
- D.
2012/8/18 xiaoyaollvm <xiaoyaollvm at 126.com>:
> In llvm3.0,I use the llc
2012 Aug 18
2
[LLVMdev] llmv3.0 CBackend convert IR to IR error
In llvm3.0,I use the llc to convert the IR to C code,
But the code lack key words like "struct", Who can tell me how to modify the CBackend, 3Q ^-^
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120818/ee901cb1/attachment.html>
2012 Mar 05
1
[LLVMdev] Problem using march=c
Hello again,
Thanks for the responses =)
Dmitry, I have two points to comment:
- First, I applied these two patches, and the .cbe.c file came out ok,
except for one little thing -- the global variable was created with
both modifiers: static and extern. Then, I just added a single guard
to prevent this to happen (in a case of a variable having local
linkage, the "extern" part was not
2017 Sep 19
2
What is the correct Targettripple for generating a X86 COFF-Files on windows?
Just got started and stuck at the same time. Working with the C-Api, i have
come to the point where i want to emit a binary file for my module. I
queried the X86-Target and called LLVMCreateTargetMachine this way:
> LTarget := LLVMGetTargetFromName('x86');
> LMachine := LLVMCreateTargetMachine(LTarget, 'i386-win32-msvc', nil,
> nil, LLVMCodeGenLevelDefault,
2013 May 14
1
[LLVMdev] [llvm-c]
Am 13.05.2013 16:16, schrieb Tom Stellard:
> On Sat, May 11, 2013 at 01:48:44PM +0200, Christian Budde wrote:
>> Hello,
>>
>> a few days ago, I was trying to access the LLVM target registry via the
>> LLVM-C interface. Unfortunately I can't seem to get some useful
>> information out of it.
>>
>> Despite the fact that the following code is written in
2013 May 13
0
[LLVMdev] [llvm-c]
On Sat, May 11, 2013 at 01:48:44PM +0200, Christian Budde wrote:
> Hello,
>
> a few days ago, I was trying to access the LLVM target registry via the
> LLVM-C interface. Unfortunately I can't seem to get some useful
> information out of it.
>
> Despite the fact that the following code is written in Pascal, can you
> please tell me if I have done something wrong here?
2017 Sep 19
0
What is the correct Targettripple for generating a X86 COFF-Files on windows?
Prior to "win32" i used "windows"
2017-09-19 19:09 GMT+02:00 Alexander Benikowski <sebal007 at googlemail.com>:
> Just got started and stuck at the same time. Working with the C-Api, i
> have come to the point where i want to emit a binary file for my module. I
> queried the X86-Target and called LLVMCreateTargetMachine this way:
>
>> LTarget :=
2017 Sep 30
2
invalid code generated on Windows x86_64 using skylake-specific features
I have this code, which works fine on MacOS and Linux hosts:
const char *target_specific_cpu_args;
const char *target_specific_features;
if (g->is_native_target) {
target_specific_cpu_args = ZigLLVMGetHostCPUName();
target_specific_features = ZigLLVMGetNativeFeatures();
} else {
target_specific_cpu_args = "";
target_specific_features =
2013 May 11
2
[LLVMdev] [llvm-c]
Hello,
a few days ago, I was trying to access the LLVM target registry via the
LLVM-C interface. Unfortunately I can't seem to get some useful
information out of it.
Despite the fact that the following code is written in Pascal, can you
please tell me if I have done something wrong here?
// initialize all targets / target information
LLVMInitializeAllTargets;
LLVMInitializeAllTargetInfos;
2017 Oct 01
1
invalid code generated on Windows x86_64 using skylake-specific features
I suspect that there are 2 issues here:
* I have incorrect alignment somewhere
* MSVC / .pdb / CodeView debugging is not working correctly.
I think the latter would help solve the former.
I will send out a new email later talking about the issues I'm having
debugging llvm-generated binaries with MSVC.
On Sat, Sep 30, 2017 at 3:33 PM, Andrew Kelley <superjoe30 at gmail.com> wrote:
2013 Sep 24
2
[LLVMdev] RFC: llvm-shlib-test (Was: [llvm] r191029 - llvm-c: Make LLVMGetFirstTarget a proper prototype)
On Mon, Sep 23, 2013 at 07:48:45PM -0400, Sean Silva wrote:
> I like the idea, but I find the name confusing; I think it should have
> `llvm-c` or `c-api` somewhere in the name. This could also serve as a
> simple example of using the API.
I had it as llvm-c-test first, then noticed that the shared library's
directory was named "llvm-shlib".
Yes, making sure it serves as
2017 Oct 03
2
invalid code generated on Windows x86_64 using skylake-specific features
I figured it out. I was using this implementation of __chkstk from
compiler-rt:
DEFINE_COMPILERRT_FUNCTION(___chkstk)
push %rcx
cmp $0x1000,%rax
lea 16(%rsp),%rcx // rsp before calling this routine -> rcx
jb 1f
2:
sub $0x1000,%rcx
test %rcx,(%rcx)
sub $0x1000,%rax
cmp $0x1000,%rax
ja 2b
1:
2013 Sep 24
0
[LLVMdev] RFC: llvm-shlib-test (Was: [llvm] r191029 - llvm-c: Make LLVMGetFirstTarget a proper prototype)
I think having this would be awesome!
On Tue, Sep 24, 2013 at 4:11 AM, Anders Waldenborg <anders at 0x63.nu> wrote:
> On Mon, Sep 23, 2013 at 07:48:45PM -0400, Sean Silva wrote:
>> I like the idea, but I find the name confusing; I think it should have
>> `llvm-c` or `c-api` somewhere in the name. This could also serve as a
>> simple example of using the API.
>
> I
2013 Sep 23
0
[LLVMdev] RFC: llvm-shlib-test (Was: [llvm] r191029 - llvm-c: Make LLVMGetFirstTarget a proper prototype)
I like the idea, but I find the name confusing; I think it should have
`llvm-c` or `c-api` somewhere in the name. This could also serve as a
simple example of using the API.
-- Sean Silva
On Mon, Sep 23, 2013 at 4:00 PM, Anders Waldenborg <anders at 0x63.nu> wrote:
> Moving this to llvmdev.
>
> On Fri, Sep 20, 2013 at 08:26:41AM +0200, Anders Waldenborg wrote:
> > >
2013 Sep 23
2
[LLVMdev] RFC: llvm-shlib-test (Was: [llvm] r191029 - llvm-c: Make LLVMGetFirstTarget a proper prototype)
Moving this to llvmdev.
On Fri, Sep 20, 2013 at 08:26:41AM +0200, Anders Waldenborg wrote:
> > > This avoids warnings when included in a application that
> > > uses -Wstrict-prototypes.
> > >
> >
> > Should we enable this warning in CFLAGS for LLVM builds to catch this
> > sooner?
>
> It is a C-only warning, and AFAICS there is no C code in
2014 Jun 16
2
[LLVMdev] Regression in 3.4's register allocator?
Yep, quite right, Evan. Any regalloc differences due to that patch are purely coincidence;
-Jim
> On Jun 16, 2014, at 10:13 AM, Evan Cheng <evan.cheng at apple.com> wrote:
>
> Hi Niklas,
>
> The attached patch has nothing to do with register allocation. r206094 changes how cpu auto-detection is done. I believe it's now the responsibility of the tools (e.g. llc) to
2016 Mar 23
2
Help with pass manager
Sorry in advance for the stupid question, i still don’t understand some concepts like passes.
I took a piece of code from llc, and I used it to write a function that creates an object (or assembly) file from an IR module.
It compiles without any problems. But program crashes when it reaches add() method of the pass manager.
Can you help me figuring out what’s the problem please? here is my