forked from OSchip/llvm-project
[mlir] silence unused-function warnings in table-generated code
Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D96695
This commit is contained in:
parent
c28622fbf3
commit
4a3473ff3b
|
@ -26,6 +26,11 @@ using namespace mlir;
|
|||
using namespace mlir::LLVM;
|
||||
using mlir::LLVM::detail::getLLVMConstant;
|
||||
|
||||
// The include below has a static function unused in this translation unit,
|
||||
// declare it as such to silence a warning.
|
||||
static LLVM_ATTRIBUTE_UNUSED ::llvm::GlobalValue::LinkageTypes
|
||||
convertLinkageToLLVM(::mlir::LLVM::Linkage value);
|
||||
|
||||
#include "mlir/Dialect/LLVMIR/LLVMConversionEnumsToLLVM.inc"
|
||||
|
||||
/// Convert MLIR integer comparison predicate to LLVM IR comparison predicate.
|
||||
|
|
|
@ -46,6 +46,11 @@ using namespace mlir;
|
|||
using namespace mlir::LLVM;
|
||||
using namespace mlir::LLVM::detail;
|
||||
|
||||
// The include below has a static function unused in this translation unit,
|
||||
// declare it as such to silence a warning.
|
||||
static LLVM_ATTRIBUTE_UNUSED ::llvm::InlineAsm::AsmDialect
|
||||
convertAsmDialectToLLVM(::mlir::LLVM::AsmDialect value);
|
||||
|
||||
#include "mlir/Dialect/LLVMIR/LLVMConversionEnumsToLLVM.inc"
|
||||
|
||||
/// Builds a constant of a sequential LLVM type `type`, potentially containing
|
||||
|
|
Loading…
Reference in New Issue