summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorGuozhi Wei <carrot@google.com>2018-01-16 19:28:50 +0000
committerGuozhi Wei <carrot@google.com>2018-01-16 19:28:50 +0000
commite6fb4e1f8ab3c76cbded23fbebdaec969205031f (patch)
tree4705f366087fb5c15e2c6e5aea66e1c48bb53608 /clang/lib/CodeGen/CodeGenModule.cpp
parent62003fbb024862a67837f963c2ac157850848af7 (diff)
downloadbcm5719-llvm-e6fb4e1f8ab3c76cbded23fbebdaec969205031f.tar.gz
bcm5719-llvm-e6fb4e1f8ab3c76cbded23fbebdaec969205031f.zip
[PPC] Add a new register XER aliased to CARRY
When "xer" is specified as clobbered register in inline assembler, clang can accept it, but llvm simply ignore it when lowered to machine instructions. It may cause problems later in scheduler. This patch adds a new register XER aliased to CARRY, and adds it to register class CARRYRC. Now PPCTargetLowering::getRegForInlineAsmConstraint can return correct register number for inline asm constraint "{xer}", and scheduler behave correctly. Differential Revision: https://reviews.llvm.org/D41967 llvm-svn: 322591
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud