[NVPTX] Add support for module-scope inline asm
authorJustin Holewinski <jholewinski@nvidia.com>
Mon, 1 Jul 2013 13:00:14 +0000 (13:00 +0000)
committerJustin Holewinski <jholewinski@nvidia.com>
Mon, 1 Jul 2013 13:00:14 +0000 (13:00 +0000)
commit728af3d574895dd9e4bb5c418c7398297c4f39fe
treee28b8c8ed46fa212965fcc3f01dd6b906dd002d3
parent1fd09172bba8539e198db0360ac66f4694b4a3e0
[NVPTX] Add support for module-scope inline asm

Since we were explicitly not calling AsmPrinter::doInitialization,
any module-scope inline asm was not being printed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185336 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
test/CodeGen/NVPTX/module-inline-asm.ll [new file with mode: 0644]