search for: fvbommel

Displaying 20 results from an estimated 71 matches for "fvbommel".

Did you mean: bommel
2010 Nov 17
1
[LLVMdev] Missing :CreateFNeg() in NoFolder.h
On Wed, Nov 17, 2010 at 9:37 PM, Frits van Bommel <fvbommel at gmail.com> wrote: > On Wed, Nov 17, 2010 at 9:26 PM, BernardH > <gmane.comp.compilers.llvm.devel at bernard-hugueney.org> wrote: >> Should I consider NoFolder unsupported ? > > Seeing as it's completely broken (it doesn't insert the created > instructions in...
2011 Mar 31
1
[LLVMdev] inserting exit function into IR
Thank you very much guys, I really appreciate your help. George On Thu, Mar 31, 2011 at 3:58 PM, Frits van Bommel <fvbommel at gmail.com>wrote: > On Thu, Mar 31, 2011 at 9:57 PM, George Baah <georgebaah at gmail.com> wrote: > > I did M.getOrInsertFunction and called the exit function with . > > > > IRBuilder<> builder = IRBuilder<>(...); > > > > Value *one = Constan...
2011 Mar 31
2
[LLVMdev] inserting exit function into IR
...nstantInt::get(Type::getInt32Ty(M.getContext()),1); builder.CreateCall(exitF,one,"tmp4"); "Instruction has a name, but provides a void value! %tmp4 = call void @exit(i32 1) Broken module found, compilation aborted! " On Thu, Mar 31, 2011 at 3:51 PM, Frits van Bommel <fvbommel at gmail.com>wrote: > On Thu, Mar 31, 2011 at 9:31 PM, George Baah <georgebaah at gmail.com> wrote: > > Hi Joshua, > > I have a function foo and I want to insert exit(0) at the end of > foo. > > The problem is M.getFunction returns null, which is understandab...
2010 Dec 01
0
[LLVMdev] RFC: Exception Handling Proposal Revised
On 1 December 2010 11:11, Frits van Bommel <fvbommel at gmail.com> wrote: > Those are destructor calls for the case where none of the foo()s > throw. There are no ctor calls because the classes have trivial > constructors, which are no-ops. Indeed! Thanks! ;) > If there were also catches, they'd probably need to explicitly execu...
2011 Feb 04
0
[LLVMdev] ConstantBuilder proposal
If you remove all the 'static's from the member functions, it'd work more like IRBuilder. It would also allow you to take the LLVMContext& as a constructor parameter, so that methods like this: On Fri, Feb 4, 2011 at 6:57 PM, Talin <viridia at gmail.com> wrote: >   /// GetStruct - return a constant struct given a context and a vector >   /// of elements. >   static
2010 Dec 01
2
[LLVMdev] RFC: Exception Handling Proposal Revised
On Wed, Dec 1, 2010 at 11:37 AM, Renato Golin <rengolin at systemcall.org> wrote: > On 1 December 2010 09:46, Bill Wendling <wendling at apple.com> wrote: >> Nor these. Basically, I want the basic block that's labeled a "landing pad" to be jumped to by only a dispatch resume or unwind edge of invoke. We could do this with the c.dtor and ch.int here, but it would
2011 Mar 25
2
[LLVMdev] set line number debug info
...debug information? How can I set the line number information for the instructions? Abhirup Ghosh M. Tech Department of Computer Science & Engg. IIT, Bombay email - abhirupju at gmail.com , abhirup at cse.iitb.ac.in Contact - 9920735181 On Mon, Mar 14, 2011 at 1:45 PM, Frits van Bommel <fvbommel at gmail.com>wrote: > On Mon, Mar 14, 2011 at 8:56 AM, Abhirup Ghosh <abhirupju at gmail.com> > wrote: > > Hi, > > I am new to LLVM infrastructure. Recently I am trying to set the > debug > > info for an instruction. The main aim is to set the source line...
2009 Mar 18
0
[LLVMdev] decimal to floating point conversion
aparna kotha wrote: > Hi all: > > I need an instruction that can convert decimal values into floating > point numbers. > > i.e. say I have a decimal number 1110794174 (== 42355FBE in hex ) and > (== 45.3435 as a float) > > essentially the mantissa and exponent representation needs to be used. > > > Is there any way of doing this in llvm? I think
2009 Jun 01
0
[LLVMdev] CMake build maturity
Paul Melis wrote: > Just checked: yup, there's plenty of assert()'s in the headers, so > -D_DEBUG will keep those alive. > > Interestingly, when configuring with --enable-optimized and > --disable-assertions the resulting compilation calls itself a > "Release-Asserts build" while all asserts are thrown away, hmmm :) Yeah, that's "Release-Asserts"
2009 Jun 03
2
[LLVMdev] CMake build maturity
Frits van Bommel <fvbommel at wxs.nl> writes: > Paul Melis wrote: >> Just checked: yup, there's plenty of assert()'s in the headers, so >> -D_DEBUG will keep those alive. >> >> Interestingly, when configuring with --enable-optimized and >> --disable-assertions the resulting compi...
2009 Jun 18
2
[LLVMdev] Referring to an argument in another function
I would like to instrument certain function calls with a function call of my own that takes some of the same arguments. For example, I would like to instrument calls to free with some function foo, so the C code would look like: foo(myarg1, myarg2, ptr); free(ptr); The problem occurs when I grab the arg from the free function and try to pass it to foo... if (isCallToFree(&I)) { Value*
2009 Jun 18
0
[LLVMdev] Referring to an argument in another function
Scott Ricketts wrote: > I would like to instrument certain function calls with a function call > of my own that takes some of the same arguments. For example, I would > like to instrument calls to free with some function foo, so the C code > would look like: > > foo(myarg1, myarg2, ptr); > free(ptr); > > The problem occurs when I grab the arg from the free function and
2010 Nov 17
2
[LLVMdev] Missing :CreateFNeg() in NoFolder.h
Hi, Just to report that when I tried to compile some code with a NoFolder given as template arg to my IRBuilder, the compiler complained with: In file included from lang_3-llvm.cxx:33: /usr/lib/llvm-2.8/include/llvm/Support/IRBuilder.h: In member function ‘llvm::Value* llvm::IRBuilder<preserveNames, T, Inserter>::CreateFNeg (llvm::Value*, const llvm::Twine&) [with bool preserveNames =
2010 Nov 17
0
[LLVMdev] Missing :CreateFNeg() in NoFolder.h
On Wed, Nov 17, 2010 at 9:26 PM, BernardH <gmane.comp.compilers.llvm.devel at bernard-hugueney.org> wrote: > Should I consider NoFolder unsupported ? Seeing as it's completely broken (it doesn't insert the created instructions into the relevant basic block) that's probably best... :( (It's also missing most of the casting operations, by the way)
2010 Dec 01
0
[LLVMdev] fixed point types
On Wed, Dec 1, 2010 at 8:11 AM, me22 <me22.ca at gmail.com> wrote: > On Tue, Nov 30, 2010 at 05:48, Jonas Paulsson <jnspaulsson at hotmail.com> wrote: >> May I ask then, what could one expect from various optimizations when using >> intrinsics to support the fixed point type? LTO, Value optimizations, mem ?? >> > > Can you not just lower your fixed-point
2011 Jan 13
0
[LLVMdev] How to define a global variable?
On Wed, Jan 12, 2011 at 11:28 PM, Rob Nikander <rob.nikander at gmail.com> wrote: > I'm trying to define a mutable variable, outside functions.  The code > below is trying to evaluate an expression much like "x = 1" at the > module level in Python.  It appears that when it tries to JIT the > function there is an error because there is no storage allocated for >
2011 Mar 31
0
[LLVMdev] inserting exit function into IR
On Thu, Mar 31, 2011 at 9:31 PM, George Baah <georgebaah at gmail.com> wrote: > Hi Joshua, >       I have a function foo and I want to insert exit(0) at the end of foo. > The problem is M.getFunction returns null, which is understandable. I am not > sure what to do. Below is the code snippet. > void foo(int argc, char* argv[]) { >   printf("hello world\n"); >
2011 Mar 31
0
[LLVMdev] inserting exit function into IR
On Thu, Mar 31, 2011 at 9:57 PM, George Baah <georgebaah at gmail.com> wrote: > I did M.getOrInsertFunction and called the exit function with . > > IRBuilder<> builder = IRBuilder<>(...); > > Value *one = ConstantInt::get(Type::getInt32Ty(M.getContext()),1); > > builder.CreateCall(exitF,one,"tmp4"); > > "Instruction has a name, but
2011 Jun 19
1
[LLVMdev] No Signed Wrap
On 19 June 2011 15:46, Duncan Sands <baldrick at free.fr> wrote: >> I am not able to understand the No Signed Wrap property. My problem is in the >> Instruction combiner which combines two operations - >> add1 = add 'nsw' x 5 >> add2 = add 'nsw' add1 1 >> into >> add2 = add x 6.  // No 'nsw' property in the combined operation.
2011 Jan 12
4
[LLVMdev] How to define a global variable?
Hi, I'm trying to define a mutable variable, outside functions. The code below is trying to evaluate an expression much like "x = 1" at the module level in Python. It appears that when it tries to JIT the function there is an error because there is no storage allocated for 'x'. How do I do that? thanks, Rob ----- dumped IR ----- ; ModuleID = 'repl-module' %0 =