Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] Cross-module optimization"
2009 Sep 06
3
[LLVMdev] Equivalent types
Hi!
I have this error while building my code:
Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i)
== Params[i]->getType()) && "Calling a function with a bad
signature!")
Actually I'm trying to load functions from .bc file and use them in
the code that I'm building with IRBuilder.
I found that function parameter type is %struct.reValue* and
2009 Sep 05
0
[LLVMdev] Cross-module optimization
Hi Andrii,
> May be is there some workaround? Like joining all the modules in one
> and then optimize it. Unfortunately I couldn't find a way to join modules.
llvm-link does this.
Ciao,
Duncan.
2009 May 08
5
[LLVMdev] Automake and llvm-config
Hello,
I'm using autotools to build my little lang.
So I want to have something like this in my Makefile.am:
mylang_SOURCES = mylang.cpp
mylang_LDADD = mylib.a `llvm-config --cppflags --ldflags --libs core
jit native ipo`
But automake complains:
tools/Makefile.am:8: linker flags such as `--cppflags' belong in `mylang_LDFLAGS
I tried different workarounds but nothing helps :(
The only
2009 Sep 06
0
[LLVMdev] Equivalent types
Hi Andrii--
They're not equivalent as far as LLVM is concerned - the parameter
type is { { i32 }. { i64 } }* whereas the function is being given a
{ i32, i64 }*. Probably the easiest way to work around this is a
simple bitcast.
Alastair
On 7 Sep 2009, at 00:32, Andrii Vasyliev wrote:
> Hi!
>
> I have this error while building my code:
> Assertion failed: ((i >=
2009 Sep 05
1
[LLVMdev] Cross-module optimization
>> May be is there some workaround? Like joining all the modules in one
>> and then optimize it. Unfortunately I couldn't find a way to join modules.
> llvm-link does this.
Thanks for answer, Duncan!
But I want to do it in my program and then run it with ExecutionEngine...
Hey, but I took a look inside of llvm-link and found a Linker class
which does modules linking! :)
So,
2008 Sep 30
1
[LLVMdev] Can't add Merge Duplicate Global Constants pass
Hi
I have a program similar to kaleidoscope with same optimization passes.
It works fine. But when I tried to add Constant Merge Pass with a line:
OurFPM.add(createConstantMergePass());
the program died with segmentation fault.
Then I tried to add the same line to native kaleidoscope from
http://llvm.org/docs/tutorial/LangImpl4.html and I've got
the same segmentation fault.
The backtrace
2018 Aug 13
2
Error: ‘class llvm::PassManager<llvm::Module>’ has no member named ‘add’
Hi, I am begineer to llvm, implementing a main.cpp from
https://github.com/davidar/lljvm/blob/master/backend/main.cpp
A) : When I am declaring a command:
* PassManager PM*
* PM.add(new DataLayout td)*
It shows error:
>
*error: missing template arguments before ‘PM’*
* PassManager PM;*
^
>*main_test.cpp:48:2: error: ‘PM’ was not declared in this scope*
*
2018 Aug 14
2
Error: ‘class llvm::PassManager<llvm::Module>’ has no member named ‘add’
Hi Philip,
I also tried that including file:
#include "llvm/IR/LegacyPassManager.h"
but error remain same. Please help.
On Tue, Aug 14, 2018, 2:58 AM Philip Pfaffe <philip.pfaffe at gmail.com> wrote:
> Hi Ratnesh,
>
> the PassManager used in that example has moved into the legacy namespace:
> http://llvm.org/doxygen/classllvm_1_1legacy_1_1PassManager.html
>
>
2013 Apr 10
4
XEN with SMP on ARMv7 with virtualizations extensions
Guys,
Could you please clarify if SMP available for XEN on ARMv7 with
virtualizations extensions?
Browsing through stuff for Arndale I do see enabling secondary CPU on XEN
site and SMP enabling on dom0 kernel site. But I do not see SMP
infrastructure implementation on the XEN site.
Sincerely,
Andrii Anisov.
_______________________________________________
Xen-devel mailing list
2009 May 08
0
[LLVMdev] Automake and llvm-config
Hi
>>>>> "AV" == Andrii Vasyliev <andrii.vasyliev at gmail.com> writes:
AV> Hello, I'm using autotools to build my little lang. So I want to
AV> have something like this in my Makefile.am:
AV> mylang_SOURCES = mylang.cpp mylang_LDADD = mylib.a `llvm-config
AV> --cppflags --ldflags --libs core jit native ipo`
AV> But automake complains:
2010 Jul 14
1
[LLVMdev] Installing the Library
Okay, so I am on OSX, I am trying to install the LLVM library. Trying to
compile their simple example (http://llvm.org/docs/tutorial/LangImpl7.html)
I keep on getting a host of errors, the source of which is its not finding
any of the included files (
#include "llvm/DerivedTypes.h"
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include
2013 Apr 12
4
XEN tools on a stripped system
Hello,
Could you please clarify what libs and utils Xen tools need to run?
Is it possible link XEN tools statically?
Is there a chance to setup busybox based system for Dom0?
Sincerely,
Andrii Anisov.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
2008 Sep 25
3
[LLVMdev] Kaleidoscope doesn't work properly
Hi
I hope this is a proper place to put my question.
I've compiled Kaleidoscope from "Adding JIT and Optimizer Support" tutorial.
Basically it works just fine but when I try to run extern'ed putchard
function it aborts.
Please, tell me what am I doing wrong?
Here is more information:
My PC runs FreeBSD.
I've copied the toy source code exactly and didn't change it.
2014 Apr 15
1
CentOS 5/6 random system freezes
I am working on high load daemon development, which listens on UDP and
processes packets. Last few months I noticed some strange issue when it
takes 500-700 ms to answer packet, while usually it takes 20 ms. I've run
strace on all daemon processes and found this thing:
13:35:36.979887 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309,
...}) = 0
13:35:36.979944 write(3,
2008 Oct 08
1
[LLVMdev] How can I create CallInst with a pointer to function
Hi
I mean when I have in my program pointer to a function how should I
build IR to call the function by the pointer?
Or how can I create llvm::Function with a pointer to a function?
I want to have something like this:
int factorial (int n) { return n==0 ? 1 : n*factorial(n-1); }
typedef int (*intFunc) (int);
intFunc fptr = factorial;
Value * N = ConstantInt::get(Type::Int32Ty,10);
2009 May 08
0
[LLVMdev] Automake and llvm-config
Can you use an intermediate variable?
TMP = `...`
mylang_LDADD = ... $TMP
On 2009-05-08, at 04:40, Andrii Vasyliev wrote:
> Hello,
>
> I'm using autotools to build my little lang.
> So I want to have something like this in my Makefile.am:
>
> mylang_SOURCES = mylang.cpp
> mylang_LDADD = mylib.a `llvm-config --cppflags --ldflags --libs core
> jit native ipo`
>
>
2013 Nov 28
0
[LLVMdev] Disabling optimizations when using llvm::createPrintModulePass
IRBuilder is a templated class, and one of the template arguments is the constant folder to use. By default it uses the ConstantFolder class which does target-independant constant folding. If you want to disable constant folding you can specify the NoFolder class instead, i.e. declare the builder as follows:
IRBuilder<true, llvm::NoFolder> builder(body)
On 26 Nov 2013, at 19:23, Daniel
2008 Jun 09
3
[LLVMdev] Plans considering first class structs and multiple return values
Hi Chris,
On Sat, Jun 07, 2008 at 02:59:03PM -0700, Chris Lattner wrote:
> On Jun 2, 2008, at 1:03 PM, Matthijs Kooijman wrote:
> >> Can you give some background about what kinds of things you're
> >> thinking
> >> about for this?
> > For example, when I have a function returning {i32, i32} and I want
> > to add
> > another i32 to that. If
2009 Mar 09
0
[LLVMdev] Cross-Module Function Calls
I have had great luck in the last couple of months getting llvm to do
cool stuff with directly linked modules using llvm-as and llvm-ld. Now,
I would like to get some of the same functionality working through an
ExecutionEngine; however, I am having trouble making functions call
across module boundaries. I know from previous discussions on this list
that what I am attempting should be easy. I
2008 Jan 16
0
[LLVMdev] Cross-module function calls (code included)
Hello,
I'm not sure what I am trying to do is possible. I'm trying to create
two modules, and call a function in one module from another module.
First, a reassurance that I'm not trying to do something completely
off the wall would be nice as I don't see any tutorials that do this.
Second, any help getting this to work would be wonderful. Thanks,
Aaron
In my code, you'll