search for: load_2

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

Did you mean: load2
2010 Apr 08
4
[LLVMdev] How to Load a Value?
...----- entry: ... %2 = call i32 (...)* @atoi(i8*%1) nounwind /*<- Insertpos*/ ... -- bb1: .. %5 = icmp sgt i32 %2, %i.0 ... ----------------- Now I have pb: pointer to the Value object of *%2* of bb1. Here, I want to generate a load instruction and I did it as: new LoadInst(pb, "load_2", InsertPos); where InsertPos points to the position immediately after "%2 = call i32 (...)* @atoi(i8*%1) nounwind". BUT I got a runtime error as: " include/llvm/Support/Casting.h:199: typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X = llv...
2013 Jan 31
1
[LLVMdev] emitPseudoInstruction with MCJIT on LLVM 3.2 for ARM
...* %fp, float** %args, i32 %n) { "4002416entry": %0 = bitcast i8* %fp to void (float*, float*, float*)* %1 = getelementptr float** %args, i32 0 %load_0 = load float** %1 %2 = getelementptr float** %args, i32 1 %load_1 = load float** %2 %3 = getelementptr float** %args, i32 2 %load_2 = load float** %3 call void %0(float* %load_0, float* %load_1, float* %load_2) ret void } -------------- next part -------------- ; ModuleID = 'vvadd.bc' define void @vvadd(float* noalias %y, float* noalias %a, float* noalias %b) { vvaddentry: br label %smLoopi smLoopi:...
2010 Apr 08
0
[LLVMdev] How to Load a Value?
...s*/ > ... > > -- > bb1: > .. > %5 = icmp sgt i32 %2, %i.0 > ... > ----------------- > > > Now I have > > pb: pointer to the Value object of *%2* of bb1. > > Here, I want to generate a load instruction and I did it as: > > new LoadInst(pb, "load_2", InsertPos); > > where InsertPos points to the position immediately after "%2 = call > i32 (...)* @atoi(i8*%1) nounwind". > > > BUT I got a runtime error as: > > " > include/llvm/Support/Casting.h:199: typename llvm::cast_retty<To, > From>::r...