Fix translation of NVVM special registers to intrinsics.
authorStephan Herhut <herhut@google.com>
Tue, 28 May 2019 11:45:50 +0000 (04:45 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:05:12 +0000 (20:05 -0700)
commit8d703af2f8bd0ff17abb0565c82e3f47b5fc6b0a
treeaf40ed6c1a785597b7df349022f2c481ad611d2e
parentd4c071cc695b25de84a63e93ee80c2ade3ccf6e3
Fix translation of NVVM special registers to intrinsics.

    The original implementation did not map the return value of the intrinsics
    call to the result value of the special register op. Uses of the result
    value hence hit a nullpointer.

--

PiperOrigin-RevId: 250255436
mlir/include/mlir/LLVMIR/NVVMOps.td
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp