[all-commits] [llvm/llvm-project] 524eaf: [MLIR] Avoid double space print on llvm global op

Uday Bondhugula via All-commits all-commits at lists.llvm.org
Thu Sep 9 07:23:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 524eafa5b20285ea26351113a46ce4a5299e4ff8
      https://github.com/llvm/llvm-project/commit/524eafa5b20285ea26351113a46ce4a5299e4ff8
  Author: Uday Bondhugula <uday at polymagelabs.com>
  Date:   2021-09-09 (Thu, 09 Sep 2021)

  Changed paths:
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp

  Log Message:
  -----------
  [MLIR] Avoid double space print on llvm global op

Fix extra space print for llvm global op when the 'unamed_addr'
attribute was empty. This led to two spaces being printed in the custom
form between non-whitespace chars. A round trip would add an extra space
to a typical spaced form. NFC.

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




More information about the All-commits mailing list