search for: aj14889

Displaying 10 results from an estimated 10 matches for "aj14889".

2013 Nov 03
3
[LLVMdev] freeing alloca'd variables before function exits
Hi, In my llvm code I want to create some function calls. The function prototype is as follows: int memoize ( char *function_name, int *int_params, unsigned num_ints, double *double_params, unsigned num_doubles) In order to create these calls I do the following for example: %88 = alloca [7 x i8] store volatile [7 x i8] c"ORACLE\00", [7 x i8]*
2013 Feb 04
0
[LLVMdev] c-like language implementation using llvm
On Sun, Feb 3, 2013 at 8:55 PM, Ali Javadi <aj14889 at yahoo.com> wrote: > I am keeping all the types of C, and adding my new types. I thought that, > for example, I can't map my new type to i32 because that's used for C > integers. That's what I meant by already used. Am I missing something? If the type behaves like an i32...
2013 Nov 04
0
[LLVMdev] freeing alloca'd variables before function exits
Stack colouring should be able to reuse the same stack space, if the live ranges of the pointers don't overlap. But I don't think anyone has built a general solution for alloca'd space. On Mon, Nov 4, 2013 at 6:30 AM, Ali Javadi <aj14889 at yahoo.com> wrote: > Hi, > > In my llvm code I want to create some function calls. The function > prototype is as follows: > > int memoize ( char *function_name, > int *int_params, unsigned num_ints, > double *double_params, unsigned num_...
2013 Feb 04
2
[LLVMdev] c-like language implementation using llvm
Hi Sean, >> Can I just utilize the i1 type? Is the >> i1 type already used for something, and thus might create a conflict? > > I think you are very confused. LLVM's types are meant to be used to > represent *your* program :) They can't be "already used". I am keeping all the types of C, and adding my new types. I thought that, for example, I can't map
2013 May 17
1
[LLVMdev] backend for intrinsic functions
Hi, I have some newly defined intrinsic functions in my llvm IR code, which I want to translate to X86 instruction set. As a first step, I want to be able to generate "nop" for these instructions, so the program at least compiles successfully. The call to my intrinsic function looks like this in the IR: call void @llvm.X(i16 %43) >From what I understand it may be possible to
2013 Jul 18
1
[LLVMdev] Nested Loop Unrolling
Hi, In LLVM (using the opt tool), is it possible to force a nested loop be unrolled entirely? Something like a pass option? I have a nested loop with depth of 4, and all trip counts are known at compile time, but so far I've only been able to do this by 4 invocations of the -loop-simplify, -loop-rotate, -loop-unroll passes. Thanks, Ali
2013 Feb 13
1
[LLVMdev] c-like language implementation using llvm
Hi there, I asked this a few days ago and Sean gave a useful answer. Going back to the second question below, I want to clarify something. On Feb 3, 2013, at 9:04 PM, Sean Silva <silvas at purdue.edu> wrote: > On Sun, Feb 3, 2013 at 8:55 PM, Ali Javadi <aj14889 at yahoo.com> wrote: >> I am keeping all the types of C, and adding my new types. I thought that, >> for example, I can't map my new type to i32 because that's used for C >> integers. That's what I meant by already used. Am I missing something? > > If the typ...
2013 May 08
0
[LLVMdev] clone function with constant argument, and constant fold it
Hi, I'm writing a pass that collects some information from functions, but this requires constant propagation/constant folding to be done on those functions beforehand. However some of these functions have an integer argument that can take certain constant values, and the functions are always called with these constant values at their various call sites. What I'm trying to do is to look at
2013 Jun 25
1
[LLVMdev] ldexp constant propagation
Hi, I have the C program below, which contains a mathematical expression. C code: ====== void ControlledRotationPiMinus(int target, int control, int j) { ControlledPhase(target,control,-PI/(2*pow(2,j))); } int main() { .. int b = 3; for (int j=1; j < b; j++) ControlledRotationPiMinus(target, control, j); .. } Here is what I am doing: The function ControlledRotationPiMinus is called
2013 Feb 03
2
[LLVMdev] c-like language implementation using llvm
Hi, I have a project where I am creating a language which is very similar to C, but has some extensions. Among the most important are: 1) A new 1-bit data-type 2) Some gates: NOT, AND, etc.. that act on arrays of this 1-bit type. (Think like a hardware description language.) These are like external function calls, which don't have an implementation for now. I don't have a particular