Dear all,<br><br>  It seems that the target-independent code generator has some problem<br>while handling *atomic* load/store instruction with pointer type, such as:<br><br>  %0 = load atomic i32** %a0 singlethread unordered, align 4<br>
  store atomic i32* %a0, i32** %a1 singlethread unordered, align 4<br>  <span style="color:rgb(192,192,192)">; (read the patch for the complete test case)</span><br><br>  These instructions will cause SEGV when we are running llc.  This is due<br>
to the fact that llvm::EVT::getSizeInBits() does not support pointer type, which<br>is target-dependent.  We should translate the pointer type with<br>llvm::TargetLowering::getValueType().  I hope the attached patch can fix the<br>
problem.  Thanks for your reading.<br><br>Sincerely,<br>Logan<br>