Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] How can I create CallInst with a pointer to function"
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
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
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
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.
2008 Sep 24
1
[LLVMdev] LLVM and C++
Hi
I want to use LLVM to generate a code working with C++ objects.
I've got basics of LLVM IR generation from Kaleidoscope and other tutorials.
Then I tried to llvm-dis'assemble llvm-gcc'ompiled C++ program and I see
how to generate all this strangely named functions and how to run
constructors and destructors. So I can imagine how to generate C++
compatible code with LLVM. But it
2008 Sep 25
3
[LLVMdev] Kaleidoscope doesn't work properly
Thanks, -rdynamic helps! It's a pity that it's not written in the tutorial.
Also I'm interested how can I provide a mapping?
2008/9/25 srs <skaflotten at gmail.com>:
> Link with -rdynamic or provide a mapping.
2009 Mar 08
2
[LLVMdev] Creating Pointer Constants
Hello,
I am writing a JIT compiler for a subset of the Matlab language and as a
part of my implementation, I would like to be able to pass a constant
pointer to a native function I'm calling.
Right now, this is what I do:
llvm::Constant* constInt = llvm::ConstantInt::get(llvm::Type::Int64Ty,
(int64)thePointer);
llvm::Value* constPtr = llvm::ConstantExpr::getIntToPtr(constInt,
2010 May 13
2
[LLVMdev] Handling of thread_local globals by llc -march=cpp
Thanks for the quick reply and fix. Now it just means I have to hunt further in exploring why, in my simple test program, replacing the following line of code:
GlobalVariable* global = new GlobalVariable(*MyModule,
IntegerType::get(getGlobalContext(), 32), false, GlobalValue::ExternalLinkage, 0, "global");
with the following line of code:
GlobalVariable* global = new
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
2019 Jan 15
2
Function - replaceAllUsesWith
What does that mean for my code and the idea?
I'm a really unexperienced LLVM user...
-----Original Message-----
From: Tim Northover <t.p.northover at gmail.com>
Sent: Dienstag, 15. Januar 2019 15:19
To: Gaier, Bjoern <Bjoern.Gaier at horiba.com>
Cc: Stefan Gränitz <stefan.graenitz at gmail.com>; Mehdi AMINI <joker.eph at gmail.com>; llvm-dev <llvm-dev at
2015 May 19
2
[LLVMdev] Module crash when adding CallInst
Hi,
I am learning to write LLVM modules. I am using IRBuilder to insert calls
to an existing function. The call is to be inserted at a random location in
every function in the code. The call does get inserted, however, the module
crashes later (after doFinalization()). The crash happens only sometimes,
not always.
These are the kind of instructions that I see in the generated code.
%callins =
2009 Nov 12
1
[ win32utils-Bugs-27425 ] win32-open3 doesn't build with 1.9.1
Bugs item #27425, was opened at 2009-11-11 21:15
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=27425&group_id=85
Category: win32-open3
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: Daniel Berger (djberg96)
Assigned to: Nobody (None)
Summary: win32-open3 doesn''t build with 1.9.1
Initial Comment:
Windows XP
VC++ 9
2011 Jan 18
2
[LLVMdev] compiling a call to function in compiler
Hi,
I'm trying to follow the advice from this message:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-October/017574.html,
to create a call instruction from a function pointer. But I'm
getting...
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of
incompatible type!"),
function cast, file /usr/local/include/llvm/Support/Casting.h, line 202.
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
2009 Sep 05
2
[LLVMdev] Cross-module optimization
Hi!
I want to load several modules with BitcodeReader and build a module
with IRBuilder and then optimize them alltogether. Actually I want
functions from loaded modules to be inlined in functions that I've built.
Is it possible with LLVM? As I understood PassManager runs upon only
one module at once.
May be is there some workaround? Like joining all the modules in one
and then optimize it.
2017 Jan 10
2
[cfe-dev] Modernizing LLVM Coding Style Guide and enforcing Clang-tidy
2017-01-10 0:06 GMT+01:00 David Blaikie <dblaikie at gmail.com>:
>
>
> On Mon, Jan 9, 2017 at 2:59 PM Sanjoy Das via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hi,
>>
>> Sorry I fat fingered an earlier send in the previous email. I was
>> trying to say:
>>
>> On Mon, Jan 9, 2017 at 2:52 PM, Sanjoy Das
>> <sanjoy at
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,
2011 Nov 11
0
[LLVMdev] Argument's types mismatch when creating CallInst.
On Fri, Nov 11, 2011 at 12:18 AM, arrowdodger <6yearold at gmail.com> wrote:
> Hello. I have an .bc, which defines @foo(%type* arg1, %type* arg2, %type*
> arg3).
> Firstly, i do this:
>
> runtimeModule = getLazyIRFileModule("runtime.bc", smd, llctx);
>
> then this:
>
> fooFunction = runtimeModule->getFunction("foo");
> myType =
2017 Jan 09
3
[cfe-dev] Modernizing LLVM Coding Style Guide and enforcing Clang-tidy
Hi,
Sorry I fat fingered an earlier send in the previous email. I was
trying to say:
On Mon, Jan 9, 2017 at 2:52 PM, Sanjoy Das
<sanjoy at playingwithpointers.com> wrote:
>> +1 Exactly this.
>> I don't think C programmer will not understand using. The "=" makes it much
>> simpler to read, even if it is the first time you see it, which is not the
>>
2009 Mar 11
0
[LLVMdev] Creating Pointer Constants
On 2009-03-08, at 12:46, Nyx wrote:
> I am writing a JIT compiler for a subset of the Matlab language and
> as a
> part of my implementation, I would like to be able to pass a constant
> pointer to a native function I'm calling.
>
> Right now, this is what I do:
>
> llvm::Constant* constInt = llvm::ConstantInt::get(llvm::Type::Int64Ty,
> (int64)thePointer);
>