search for: secondarg

Displaying 4 results from an estimated 4 matches for "secondarg".

Did you mean: secondary
2011 Sep 22
0
[LLVMdev] Need help in converting int to double
...really helped if you had removed the commented out code and inlined the calls to your homemade helper functions before sending it... You are doing this, in LLVM IR: %0 = getelementptr %Value* %firstArg, i32 0 ; i8** %1 = load i8** %0 ; i8* %2 = bitcast i8* %1 to i64* %3 = getelementptr %Value* %secondArg, i32 0 ; i8** %4 = load i8** %3; i8* %5 = bitcast i8* %4 to i64* %6 = load i64* %2 %7 = load i64* %5 Then you call convertDoubleToInt64(). What does this actually do? It's in trouble by this point because it needs to do a fptosi on a double operand, but you've got an i64 operand and you...
2011 Sep 22
2
[LLVMdev] Need help in converting int to double
...et.... > > > lhs = mBuilder.CreateStructGEP(firstArg, 0); > lhs = mBuilder.CreateLoad(lhs); > lhs = mBuilder.CreatePointerCast(lhs, PointerType::get( > mBuilder.getInt64Ty(), 0)); > int typelhs = getValueType(lhs); > rhs = mBuilder.CreateStructGEP(secondArg, 0); > rhs = mBuilder.CreateLoad(rhs); > rhs = mBuilder.CreatePointerCast(rhs, PointerType::get( > mBuilder.getInt64Ty(), 0)); > > lhs = mBuilder.CreateLoad(lhs); > rhs = mBuilder.CreateLoad(rhs); > > lhs = convertDoubleToInt64(lhs); // used F...
2011 Sep 22
1
[LLVMdev] Need help in converting int to double
...tions before sending it...** > ** > > ** ** > > You are doing this, in LLVM IR:**** > > ** ** > > %0 = getelementptr %Value* %firstArg, i32 0 ; i8****** > > %1 = load i8** %0 ; i8***** > > %2 = bitcast i8* %1 to i64***** > > %3 = getelementptr %Value* %secondArg, i32 0 ; i8****** > > %4 = load i8** %3; i8***** > > %5 = bitcast i8* %4 to i64***** > > ** ** > > %6 = load i64* %2**** > > %7 = load i64* %5**** > > ** ** > > Then you call convertDoubleToInt64(). What does this actually do?**** > > It’s in trouble...
2011 Sep 22
3
[LLVMdev] Need help in converting int to double
Hi, I'm pursuing M.Tech course. As a part of the project work i'm using LLVM as back-end. My project area is "Enhancing the performance of V8 javascript engine using LLVM as a back-end". Now i'm writing code for shift left(SHL) operator. I had my own Value Structure .. it's like this Struct Value { void *val ; char type; } The "char type" holds