search for: theresia

Displaying 3 results from an estimated 3 matches for "theresia".

2010 Oct 15
5
[LLVMdev] How do I find all memory allocations in an llvm ir code file?
I tried to compile this snippet of C++ code: void FuncTest() {     int* a = new int;     int* b = new int[2]; } using: clang test.cpp -S -emit-llvm -o - > test.llvm and obtained this: define void @_Z8FuncTestv() { entry:   %a = alloca i32*, align 4   %b = alloca i32*, align 4   %call = call noalias i8* @_Znwj(i32 4)   %0 = bitcast i8* %call to i32*   store i32* %0, i32** %a, align 4  
2010 Oct 21
2
[LLVMdev] statically linked passes
Hi, I am trying to create a pass that should get statically linked into opt (since I'm on both mac and native win32 and win32 does not support LOADED_MODULEs, at least I get errors while trying to create one). So I have it working with CMake on windows but when I try to run the same code base on mac I get unresolved externals. Here is what I have done so far in the build system: Within
2010 Oct 15
0
[LLVMdev] How do I find all memory allocations in an llvm ir code file?
...ize new, new[], delete, and delete[]). There are even analyses you can do to determine if a function is a memory allocator. I have not yet had enough time to implement such an analysis group, but if others think it's a good idea, feel free to write it. :) -- John T. On 10/15/10 6:37 AM, Theresia Hansson wrote: > I tried to compile this snippet of C++ code: > > void FuncTest() { > int* a = new int; > int* b = new int[2]; > } > > using: > > clang test.cpp -S -emit-llvm -o -> test.llvm > > and obtained this: > > define void @_Z8FuncTestv...