blob: 459859f5be47b2dd71714307e7c0ba5257d794cc [file] [log] [blame] [edit]
// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s
// Check that dialect attributes are processed for external functions.
// This might not be an intended use case for `nvvm.minctasm`, but it enables
// testing this feature easily.
module {
llvm.func external @f() attributes { nvvm.minctasm = 10 : i32 }
// CHECK: declare void @f() #[[ATTRS:[0-9]+]]
// CHECK: attributes #[[ATTRS]] = { "nvvm.minctasm"="10" }
}