Displaying 5 results from an estimated 5 matches for "getint32ptrti".
Did you mean:
getint32ptrty
2016 Dec 28
1
llvm pass
I want to insert new alloca Instruction after existing alloca Instruction
in llvm pass so what attribute to be passed at last in following
newallocaI = new AllocaInst(llvm::Type::getInt32PtrTy(context,0), //type
0, // ArraySize
8, // Alignment
2011 Nov 24
1
[LLVMdev] differences in IR and ELF?
I'm trying to create a GlobalVariable that is a ConstantArray. Id like
each element to be a pointer to other things in the program(global
variables, functions). So that they all have the same type Id like to
make the elements void pointers.
I think I am going about this wrong, heres how I am doing it:
void writeArray(Module &M, GlobalVariable *shadow, Function *val,
2011 Nov 15
0
[LLVMdev] constructing global array of pointers?
I'm trying to create a GlobalVariable(that is a ConstantArray) in its
own section. I want each element to be a pointer to a global thats
already in the program(a variable or function). The follow code makes
sense to me and compiles fine, but gives me the wrong output. When I
look at the section in the ELF file it is larger than I expected and
appears to be wrong. The contents of the array do
2011 Nov 24
0
[LLVMdev] differences in IR and ELF?
Contents of section my_section:
400890 c3666666 6666662e 0f1f8400 00000000 .ffffff.........
4008a0 38106000 00000000 b0064000 00000000 8.`....... at .....
4008b0 d0064000 00000000 0f1f8400 00000000 .. at .............
4008c0 38106000 00000000 d0064000 00000000 8.`....... at .....
4008d0 30074000 00000000 0. at .....
This seems too big and doesn't make sense
2013 Jan 27
2
[LLVMdev] Passing an array to an external function
Hi all,
I am new to LLVM, and I am learning how to use LLVM for profiling. I need to
pass an array to an external method, and insert a call instruction to the
method in the code.
After reading a few source files, I've tried using GetElementPtrInst to pass
an array, but it fails at llvm::GetElementPtrInst::hasAllZeroIndices() const
+ 0
std::vector<Value*> Args(1);