mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
e2177a8321
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
21 lines
497 B
LLVM
21 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"
|
|
|
|
declare void @main()
|
|
|
|
define void @foo() {
|
|
call void @main()
|
|
ret void
|
|
}
|
|
|
|
; CHECK-NOT: __original_main
|
|
; CHECK-LABEL: foo:
|
|
; CHECK-NEXT: .functype foo () -> ()
|
|
; CHECK-NEXT: call main@FUNCTION
|
|
; CHECK-NEXT: end_function
|
|
; CHECK-NOT: __original_main
|