Displaying 1 result from an estimated 1 matches for "gelementptr".
Did you mean:
getlementptr
2002 Sep 14
1
[LLVMdev] MP1: Gelementptr question
The following is legal LLVM code in which ptr, ptr2, and ptr3 are all
aliases:
%struct = type { int, int }
implementation
int %p() {
%ptr1 = alloca %struct
%ptr2 = getelementptr %struct* %ptr1
%ptr3 = getelementptr %struct* %ptr2, uint 0
%pint = getelementptr %struct* %ptr3, uint 0, ubyte 0
%rval = load int* %pint
ret int %rval
}
Should our pass a) ignore this, not replace %ptr1,