Displaying 3 results from an estimated 3 matches for "cs6265pass".
2013 Dec 05
0
[LLVMdev] Help with replacing instructions via function pass
...0xb77c4400 __kernel_sigreturn + 0
4 0xb77c4422 __kernel_vsyscall + 2
5 libc.so.6 0xb751f941 gsignal + 81
6 libc.so.6 0xb7522d72 abort + 386
7 libc.so.6 0xb7518b58 __assert_fail + 248
8 opt 0x08edfb85 llvm::Value::replaceAllUsesWith(llvm::Value*) + 187
9 CS6265Pass.so 0xb77bdee4
10 opt 0x08ec5317 llvm::FPPassManager::runOnFunction(llvm::Function&) + 301
11 opt 0x08ec54b8 llvm::FPPassManager::runOnModule(llvm::Module&) + 92
12 opt 0x08ec57bc llvm::MPPassManager::runOnModule(llvm::Module&) + 496
13 opt 0x08ec5...
2013 Dec 04
0
[LLVMdev] Quick doubt about IR
Create a new alloca instruction, insert it into the IR right before (or after) the old one, RAUW the value, then delete the old instruction. You should be able to find a variety of examples of this sort of thing in most of the IR level optimization passes. I’d look at InstCombine in particular.
-Jim
On Dec 4, 2013, at 1:40 PM, Shivam Bhagi <shivam.bhagi at outlook.com> wrote:
> Hi,
2013 Dec 04
3
[LLVMdev] Quick doubt about IR
Hi,
While looking over the IR generated by my source code, I came across the following:
%arr = alloca [30 x i8], align 1
In the source code this particular line of code is represented by:
int arr[30];
I was wondering how I could change the capacity of arr from 30 to any other integral value via a function-pass. I know that 'alloca' can be used for reserving space on stack; further,