search for: word_number_0

Displaying 1 result from an estimated 1 matches for "word_number_0".

2014 Apr 17
2
[LLVMdev] More Qs about llvm IR to access struct fields
...{i8*}: &struct_member_no_1 %2 = load i8* %1 ; 2) Use a byte number: %3 = getelementptr [ 4 x i8 ]* %STvar i32 0, i32 2 ; {i8*}: &byte_number_2 %4 = load i8* %3 ; 3) Use a word number, then shift & mask within: %5 = getelementptr [ 1 x i32 ]* %STvar i32 0, i32 0 ; {i32*}: &word_number_0 %6 = load i32* %5 ; {i32}: word_number_0 %7 = lshr i32 %6 8 ; {i32}: right_justified %8 = and i32 %7 0xff ; {i32}: irrelevant_bits_zeroed Question 1: Does this choice affect the optimizati...