[NVPTX] Make the alignment an explicit argument to ldu/ldg
authorJingyue Wu <jingyue@google.com>
Fri, 29 Aug 2014 15:30:20 +0000 (15:30 +0000)
committerJingyue Wu <jingyue@google.com>
Fri, 29 Aug 2014 15:30:20 +0000 (15:30 +0000)
commit87a2b36cf686a3692ab4763be0dbbbcc8df302d0
treebc49ec9576b07c0770850f281d541d4feda3be5b
parentc5484a2704ac301e28a0d59701d76b732f3ee803
[NVPTX] Make the alignment an explicit argument to ldu/ldg

Summary:
Instead of specifying the alignment as metadata which may be destroyed by
transformation passes, make the alignment the second argument to ldu/ldg
intrinsic calls.

Test Plan:
ldu-ldg.ll
ldu-i8.ll
ldu-reg-plus-offset.ll

Reviewers: eliben, meheff, jholewinski

Reviewed By: meheff, jholewinski

Subscribers: jholewinski, llvm-commits

Differential Revision: http://reviews.llvm.org/D5093

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216731 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsNVVM.td
lib/Target/NVPTX/NVPTXISelLowering.cpp
test/CodeGen/NVPTX/ldu-i8.ll
test/CodeGen/NVPTX/ldu-ldg.ll
test/CodeGen/NVPTX/ldu-reg-plus-offset.ll