Migrate the NVPTX backend asm printer to a per function subtarget.
authorEric Christopher <echristo@gmail.com>
Thu, 19 Feb 2015 00:08:14 +0000 (00:08 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 19 Feb 2015 00:08:14 +0000 (00:08 +0000)
commit9d2ea22e2b0842e692d58e7f127951b3d86ab75d
tree8b155c7183800b216141bccdada7fab1d5ea845d
parent00c954ffc41e9229650407d13f086615aa758133
Migrate the NVPTX backend asm printer to a per function subtarget.

This involved moving two non-subtarget dependent features (64-bitness
and the driver interface) to the NVPTX target machine and updating
the uses (or migrating around the subtarget use for ease of review).
Otherwise use the cached subtarget or create a default subtarget
based on the TargetMachine cpu and feature string for the module
level assembler emission.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229785 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
lib/Target/NVPTX/NVPTXAsmPrinter.h
lib/Target/NVPTX/NVPTXSubtarget.cpp
lib/Target/NVPTX/NVPTXSubtarget.h
lib/Target/NVPTX/NVPTXTargetMachine.cpp
lib/Target/NVPTX/NVPTXTargetMachine.h