Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] AllocaInst remapped as NULL in llvm::MapValue"
2013 Jul 25
2
[LLVMdev] Error for AllocaInst and Instruction
Hi,
For the following code
const Type * Int32Type =
IntegerType::getInt32Ty(getGlobalContext());
AllocaInst* newInst = new AllocaInst(Int32Type, 0, "flag", Bb);
Bb->getInstList().push_back(newInst);
It gives me the error
" error: no matching constructor for initialization of 'llvm::AllocaInst'
AllocaInst* newInst = new
2015 Jan 15
2
[LLVMdev] AllocaInst for FunctionType?
Hi,
I'm trying to get my head around c++ - IR - c++ API and getting used
tramform manual information to code.
The manual states alloca is defined for <type>. FunstionType is a type, so
alloca for functionType should be possible? Not?
If we have a valid Module *m
we can get an allocate instruction allocating space for a non-argumented
function as follows:
AllocaInst* pa2 = new
2002 Sep 13
0
[LLVMdev] FYI: AllocaInst & MallocInst ctor change
Just a note: I just checked in a change that corrects some very
non-intuitive behavior of the AllocaInst & MallocInst classes. Before,
the constructor would take a Type which would specify the return type of
the instruction, instead of the operand type. Now it takes the operand
type directly. More concretely:
LLVM Code:
X = alloca int ; int*
Y = malloc int * ; int**
Old C++
2010 May 28
0
[LLVMdev] Retrieving Underlying Type from AllocaInst
You should be able to use the second alternative that Nick proposed:
cast<PointerType*>(pointer_value->getType())->getElementType()
Reid
On Fri, May 28, 2010 at 9:37 AM, Curtis Faith <curtis at curtisfaith.com> wrote:
> Thanks Nick,
> Unfortunately, that is indeed what I asked for but not what I really am
> looking for.
> My naive approach is to store symbol table
2016 Jun 28
0
mutateType on AllocaInst problem
Hi,
I'm trying to replace pointer typed alloca instructions to allocate a
vector of pointers. The idea is to change from [1] to [2]:
[1]: %0 = alloca i<N>*
[2]: %0 = alloca <3 x i8*>
I did it this way:
- first, create and insert [2] (for debug purpose, not necessary to
insert)
- mutate type so that replaceAllUsesWith can be called in a correctly
typed way
- replace all
2010 May 28
0
[LLVMdev] Retrieving Underlying Type from AllocaInst
Curtis Faith wrote:
> Is there a recommended way to retrieve the original type from an
> AllocaInst object?
>
> For example, I am creating alloca instructions using the IRBuilder
> interface like:
>
> alloca = builder.CreateAlloca( Type::getDoubleTy( context ), 0,
> variableName.c_str() );
>
> and I place the alloca into a symbol table.
>
> Later when I am
2010 May 28
2
[LLVMdev] Retrieving Underlying Type from AllocaInst
Is there a recommended way to retrieve the original type from an AllocaInst object?
For example, I am creating alloca instructions using the IRBuilder interface like:
alloca = builder.CreateAlloca( Type::getDoubleTy( context ), 0, variableName.c_str() );
and I place the alloca into a symbol table.
Later when I am generating instructions for an assignment operation, I want to check the type of
2010 May 28
2
[LLVMdev] Retrieving Underlying Type from AllocaInst
Thanks Nick,
Unfortunately, that is indeed what I asked for but not what I really am looking for.
My naive approach is to store symbol table entries as Value* objects so I can allocate global variables and alloca variables and place them into the symbol table and the rest of the code didn't need to know which kind they were, in general. Loads and Stores of these types (as well as other
2002 Sep 15
2
[LLVMdev] MP1: Constructor for AllocaInst
I remember reading in a previous thread by Chris that all instructions
will have the "instruction to insert before" as an argument to their
constructors. In the code I have, this hasn't been done for the
AllocaInst. I did a recent "cvsupdate", but the code still hadn't
changed. Has this code already been updated ? If not, I request that it
be updated as soon as
2012 Aug 16
1
[LLVMdev] AllocaInst issue
Hello,
I have the following problem: I need to allocate an array. I know it's size - it's constant (ConstExpr), but my problem is that I know it only during the runtime (i.e for every variable I'm trying to allocate an array equal to size of a variable). As I understand I can't do it, since it's possible to initialize ArrayType only if I know it's size in integer units.
2002 Sep 15
0
[LLVMdev] MP1: Constructor for AllocaInst
> AllocaInst. I did a recent "cvsupdate", but the code still hadn't
> changed. Has this code already been updated ? If not, I request that it
> be updated as soon as possible, as it simplifies our implementation of
> MP1 (we need to insert the alloca's at the beginning of the function).
The plan is to update the CSIL CVS tree soon. When that happens you
should get
2019 Nov 08
2
Understanding AllocaInst
Hello,
Hopefully this is the correct place for this sort of question. I have been
trying to do some simple instrumentation of LLVM IR, and I have been
confused by the return type of alloca. When passing an AllocaInst as a
parameter to a function call, the parameter type is i32**, which is not
what I would expect. Really I would like the address of the allocated
memory. What am I missing? And is
2008 May 21
1
table(factor(x), exclude=NULL) (PR#11494)
Hi. I don't know if this a bug or just annoying to me:
> x <- c(1,2,3,NA)
> table(x, exclude=NULL)
x
1 2 3 <NA>
1 1 1 1
> table(factor(x), exclude=NULL)
1 2 3
1 1 1
I don't think many people use factor(x, exclude=NULL): it is not the
default handling of character data by read.table().
Cheers, David Duffy.
--
| David Duffy (MBBS PhD)
2011 Jan 07
1
[LLVMdev] Questions about debug info in LLVM 2.8
On Thu, 2011-01-06 at 11:13 -0800, Devang Patel wrote:
> On Jan 4, 2011, at 7:32 PM, Jacob Zimmermann wrote:
>
> > Hi,
> >
> > I'm currently porting some code from LLVM 2.6 to 2.8 and need to be able
> > to extract the debug info produced by LLVM-GCC and stored in the
> > compiled .bc file. However I admit I'm slightly confused about how
> >
2013 Jan 16
0
[LLVMdev] CloneFunctionInto/MapValue, problem when VMap changes type
Hello All,
I am having a problem with using CloneFunctionInto to clone a function that includes changing the type of a value using the VMap. Specifically, I am using the VMap to change the address space of values that have particular pointer types.
The problem seems to be that RemapInstruction successfully changes the operands using the VMap, but the VTy member indicating the type of the
2014 Aug 04
3
[LLVMdev] LLVM AllocaInst and StoreInst
Hi,
I am trying to write a simple interpreter.
I am trying to generate LLVM IR for assignment operation. The code for the
generation part looks like this
llvm::Value* codeGenSymTab(llvm::LLVMContext& context) {
> printf("\n CodeGen SymTab \n");
> Value *num = ConstantInt::get(Type::getInt64Ty(context), aTable.value,
> true);
> Value *alloc = new
2003 May 22
1
Re: dates in chron package, split warning message
>
> > Dear All,
> >
> > I am currently using R for windows.
> >
> > I am wondering why the dates command in chron package does not work in
the
> > following situation:
> >
> > cut(dates(c(23,45,67),origin=c(1,1,2004)),"months")
> >
> > but will work for:
> >
> >
2011 Jan 06
0
[LLVMdev] Questions about debug info in LLVM 2.8
On Jan 4, 2011, at 7:32 PM, Jacob Zimmermann wrote:
> Hi,
>
> I'm currently porting some code from LLVM 2.6 to 2.8 and need to be able
> to extract the debug info produced by LLVM-GCC and stored in the
> compiled .bc file. However I admit I'm slightly confused about how
> exactly to do that, the documentation doesn't seem to be very clear
> about this, it mainly
2018 Sep 20
2
Added AllocaInsts are relocated in stack
Hi there,
I am wondering how I can prevent the LLVM from re-ordering the added local
variables during instrumentation?
Because, during the instrumentation, I add some metadata to some local
variables, exactly next to it, and the generated bitcode looks good.
However, when it is executed, basically the stack is formed as all original
local variables are located next to each other, and then all the
2001 Oct 22
1
Samba as PDC for win2000
Hi
I am having the most basic of problems. I have setup a PDC with samba
2.2.2 and am trying to get my Win200) machine to join the domain. I followed the
following proceedure
http://ivy:901/swat/help/Samba-HOWTO-Collection.html#SAMBA-PDC
And when I go to the client W2000 box and change from the workgroup to
join the domain I get a popup which says