[all-commits] [llvm/llvm-project] af5e61: [NVPTX] Fix for NVPTX module asm regression

Julia Tatz via All-commits all-commits at lists.llvm.org
Wed Jun 24 11:17:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: af5e61bf4fd1bf865f90beab0227ff4901246eeb
      https://github.com/llvm/llvm-project/commit/af5e61bf4fd1bf865f90beab0227ff4901246eeb
  Author: tatz.j at northeastern.edu <tatz.j at husky.neu.edu>
  Date:   2020-06-24 (Wed, 24 Jun 2020)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
    M llvm/test/CodeGen/NVPTX/module-inline-asm.ll

  Log Message:
  -----------
  [NVPTX] Fix for NVPTX module asm regression

Currently module asm ends up emitted twice and at the wrong place in the PTX.
This patch moves module asm generation into emitStartOfAsmFile() which puts at
the correct location in the generated PTX.

Differential Revision: https://reviews.llvm.org/D82280




More information about the All-commits mailing list