mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-16 15:56:05 +00:00

Summary: This makes it easier/cleaner to generate a single signature from this directive. Also: - Adds the symbol name, such that we don't depend on the location of this directive anymore. - Actually constructs the signature in the assembler, and make the assembler own it. - Refactor the use of MVT vs ValType in the streamer and assembler to require less conversions overall. - Changed 700 or so tests to use it. Reviewers: sbc100, dschuff Subscribers: jgravelle-google, eraman, aheejin, sunfish, jfb, llvm-commits Differential Revision: https://reviews.llvm.org/D54652 llvm-svn: 347228
19 lines
497 B
LLVM
19 lines
497 B
LLVM
; RUN: llc < %s -asm-verbose=false -wasm-temporary-workarounds=false | FileCheck %s
|
|
|
|
; Test main functions with alternate signatures.
|
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
define void @main() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: .L__original_main:
|
|
; CHECK-NEXT: .functype .L__original_main () -> ()
|
|
; CHECK-NEXT: end_function
|
|
|
|
; CHECK-LABEL: main:
|
|
; CHECK-NEXT: .functype main (i32, i32) -> (i32)
|
|
; CHECK: call .L__original_main@FUNCTION
|