Displaying 2 results from an estimated 2 matches for "recordstor".
Did you mean:
recordstore
2010 May 17
3
[LLVMdev] Is this value an integer type?
...mbly code:
---
%322 = getelementptr inbounds [76 x [4 x i8]]* @i_tc0_table, i32 0,
i32 %305, i32 %321 ; <i8*> [#uses=1]
%323 = load i8* %322, align 1 ; <i8> [#uses=1]
store i8 %323, i8* %89, align 1
--
I want to dump %323 to a library function whose prototype is:
recordStore(const char*, unsigned int, unsigned, int)
But my passer stuck at CallInst::init, because llvm complains %323
does not have the same type as the recordStore's is declared.
assert((i >= FTy->getNumParams() ||
FTy->getParamType(i)== Params[i]->getType()) &&...
2010 May 17
0
[LLVMdev] Is this value an integer type?
...bounds [76 x [4 x i8]]* @i_tc0_table, i32 0,
> i32 %305, i32 %321 ; <i8*> [#uses=1]
> %323 = load i8* %322, align 1 ; <i8> [#uses=1]
> store i8 %323, i8* %89, align 1
> --
>
> I want to dump %323 to a library function whose prototype is:
>
> recordStore(const char*, unsigned int, unsigned, int)
To pass an i8 as i32 you need either sign-, or zero-extension, i.e.
%324 = zext i8 %323 to i32
call %recordStore(null, %324, i32 0)
For example.
> ***** Why %323 is different from the Integer type I has declared?
i8 and i32 are different types
Bes...