search for: llvmobfuscationtest

Displaying 6 results from an estimated 6 matches for "llvmobfuscationtest".

2012 Apr 27
4
[LLVMdev] RE : Detect if a basicblock is part of a loop
...re your pass, the loop may have been unrolled or simplified if the computation inside the loop is too simple. > > Cheers, > -- > Arnaud de Grandmaison Just as I said to Hal, nothing else than: $ clang -emit-llvm -S -o main.ll main.c $ ../build/Release/bin/opt -load ../build/Release/lib/LLVMobfuscationTest.so -flattening -S main.ll -o main.opt.ll > From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] On Behalf Of Cristianno Martins [cristiannomartins at gmail.com] > Hi Rinaldini, > > In order to find information about loops inside a given function you should use somethi...
2012 Apr 27
0
[LLVMdev] RE : Detect if a basicblock is part of a loop
> Just as I said to Hal, nothing else than: > $ clang -emit-llvm -S -o main.ll main.c > $ ../build/Release/bin/opt -load ../build/Release/lib/LLVMobfuscationTest.so -flattening -S main.ll -o main.opt.ll Then you might need to past your main.c. Besides, is LLVMobfuscationTest.so your own pass? What does it do? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-37...
2012 Apr 27
2
[LLVMdev] RE : RE : Detect if a basicblock is part of a loop
...align 4 %11 = load i32* %c, align 4 %12 = add nsw i32 %11, 1 store i32 %12, i32* %c, align 4 br label %13 ; <label>:13 ; preds = %10 %14 = load i32* %k, align 4 %15 = add nsw i32 %14, 1 store i32 %15, i32* %k, align 4 br label %7 > is LLVMobfuscationTest.so your own pass? What does it do? Yes it's my own lib... It contains some obfuscation's passes. The one I'm trying to make now is making code flattening! Cheers ps: I tried Cristianno Martins solution, but it didn't work too :( ________________________________________ De : 陳韋任...
2012 Apr 27
0
[LLVMdev] RE : Detect if a basicblock is part of a loop
> I'm running opt with my lib on a ir code emmitted by clang: $ clang -emit-llvm -S -o main.ll main.c > and opt: $ ../build/Release/bin/opt -load ../build/Release/lib/LLVMobfuscationTest.so -flattening -S main.ll -o main.opt.ll What's the clang default opt level? Maybe you should use "-O0" explicitly. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage:...
2012 Apr 26
0
[LLVMdev] Detect if a basicblock is part of a loop
Hi, Depending on what have run before your pass, the loop may have been unrolled or simplified if the computation inside the loop is too simple. Cheers, -- Arnaud de Grandmaison ________________________________________ From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] On Behalf Of Cristianno Martins [cristiannomartins at gmail.com] Sent: Thursday, April 26, 2012 5:52 PM To:
2012 Apr 26
2
[LLVMdev] Detect if a basicblock is part of a loop
Hi Rinaldini, In order to find information about loops inside a given function you should use something like "LoopInfo *LI = P->getAnalysis<LoopInfo>()", remembering to add "AU.addRequired<LoopInfo>();" to your getAnalysisUsage method. If the function you are interested to is not located in the module being compiled (if you created it as an auxiliary function,