summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJustin Holewinski <jholewinski@nvidia.com>2014-06-27 18:36:06 +0000
committerJustin Holewinski <jholewinski@nvidia.com>2014-06-27 18:36:06 +0000
commit2739c0175c7c4785345924c7c8bf3c29b38e9733 (patch)
treec891e043b377f946cdf2cd263e26b109a3a53e41 /llvm/lib
parentb5db95e46592e6a23a0965878cd148a6572b4a24 (diff)
downloadbcm5719-llvm-2739c0175c7c4785345924c7c8bf3c29b38e9733.tar.gz
bcm5719-llvm-2739c0175c7c4785345924c7c8bf3c29b38e9733.zip
[NVPTX] Add 'b' asm constraint
llvm-svn: 211946
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
index 9624c3f9fe1..9160015009d 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -2605,6 +2605,7 @@ NVPTXTargetLowering::getConstraintType(const std::string &Constraint) const {
switch (Constraint[0]) {
default:
break;
+ case 'b':
case 'r':
case 'h':
case 'c':
@@ -2624,6 +2625,8 @@ NVPTXTargetLowering::getRegForInlineAsmConstraint(const std::string &Constraint,
MVT VT) const {
if (Constraint.size() == 1) {
switch (Constraint[0]) {
+ case 'b':
+ return std::make_pair(0U, &NVPTX::Int1RegsRegClass);
case 'c':
return std::make_pair(0U, &NVPTX::Int16RegsRegClass);
case 'h':
OpenPOWER on IntegriCloud