[all-commits] [llvm/llvm-project] 12875e: [mlir] generate enum translation functions with un...

ftynse via All-commits all-commits at lists.llvm.org
Thu Feb 18 00:45:00 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12875ed97607648b92595b7bf9a8ede550b25342
      https://github.com/llvm/llvm-project/commit/12875ed97607648b92595b7bf9a8ede550b25342
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2021-02-18 (Thu, 18 Feb 2021)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/tools/mlir-tblgen/LLVMIRConversionGen.cpp

  Log Message:
  -----------
  [mlir] generate enum translation functions with unused attribute

The functions translating enums to LLVM IR are generated in a single
file included in many places, not all of which use all translations.
Generate functions with "unused" attribute to silence compiler warnings.

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list