Imported Upstream version 6.10.0.49

Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2020-01-16 16:38:04 +00:00
parent d94e79959b
commit 468663ddbb
48518 changed files with 2789335 additions and 61176 deletions

View File

@@ -0,0 +1,60 @@
# RUN: yaml2obj < %s | llvm-nm - | FileCheck -strict-whitespace %s
# That wasm exports of functions and globals are displayed as global data and
# code symbols.
--- !WASM
FileHeader:
Version: 0x00000001
Sections:
- Type: TYPE
Signatures:
- ReturnType: I32
ParamTypes:
- I32
- Type: FUNCTION
FunctionTypes: [ 0, 0, 0, 0, 0 ]
- Type: GLOBAL
Globals:
- Type: I32
Mutable: false
InitExpr:
Opcode: I64_CONST
Value: 32
- Type: I32
Mutable: false
InitExpr:
Opcode: I32_CONST
Value: 64
- Type: I32
Mutable: false
InitExpr:
Opcode: I32_CONST
Value: 1024
- Type: IMPORT
Imports:
- Module: env
Field: fimport
Kind: FUNCTION
SigIndex: 0
- Module: env
Field: gimport
Kind: GLOBAL
GlobalType: I32
GlobalMutable: false
- Type: EXPORT
Exports:
- Name: foo
Kind: FUNCTION
Index: 0x00000004
- Name: bar
Kind: GLOBAL
Index: 0x00000003
- Type: CUSTOM
Name: "linking"
DataSize: 0
# CHECK: 00000400 D bar
# CHECK-NEXT: U fimport
# CHECK-NEXT: 00000004 T foo
# CHECK-NEXT: U gimport

View File

@@ -0,0 +1,28 @@
# RUN: yaml2obj < %s | llvm-nm - | FileCheck -strict-whitespace %s
--- !WASM
FileHeader:
Version: 0x00000001
Sections:
- Type: TYPE
Signatures:
- ReturnType: I32
ParamTypes:
- I32
- Type: IMPORT
Imports:
- Module: env
Field: foo
Kind: FUNCTION
SigIndex: 0
- Module: env
Field: bar
Kind: GLOBAL
GlobalType: I32
GlobalMutable: false
- Type: CUSTOM
Name: "linking"
DataSize: 0
# CHECK: U bar
# CHECK: U foo

View File

@@ -0,0 +1,8 @@
; RUN: llc -filetype=obj -mtriple=wasm32-unknown-unknown-wasm -o %t.o %s
; RUN: llvm-nm %t.o | FileCheck %s
@foo = internal global i32 1, align 4
@bar = global i32 1, align 4
; CHECK: 00000004 D bar
; CHECK: 00000000 d foo

View File

@@ -0,0 +1,69 @@
# RUN: yaml2obj < %s | llvm-nm - | FileCheck -strict-whitespace %s
# That wasm exports of functions and globals are displayed as global data and
# code symbols.
--- !WASM
FileHeader:
Version: 0x00000001
Sections:
- Type: TYPE
Signatures:
- ReturnType: I32
ParamTypes:
- I32
- Type: FUNCTION
FunctionTypes: [ 0, 0, 0, 0 ]
- Type: IMPORT
Imports:
- Module: env
Field: weak_import_func
Kind: FUNCTION
SigIndex: 0
- Module: env
Field: weak_import_data
Kind: GLOBAL
GlobalType: I32
GlobalMutable: false
- Type: GLOBAL
Globals:
- Type: I32
Mutable: false
InitExpr:
Opcode: I64_CONST
Value: 32
- Type: I32
Mutable: false
InitExpr:
Opcode: I32_CONST
Value: 64
- Type: I32
Mutable: false
InitExpr:
Opcode: I32_CONST
Value: 1024
- Type: EXPORT
Exports:
- Name: weak_global_func
Kind: FUNCTION
Index: 0x00000004
- Name: weak_global_data
Kind: GLOBAL
Index: 0x00000003
- Type: CUSTOM
Name: linking
DataSize: 0
SymbolInfo:
- Name: weak_global_func
Flags: [ BINDING_WEAK ]
- Name: weak_global_data
Flags: [ BINDING_WEAK ]
- Name: weak_import_func
Flags: [ BINDING_WEAK ]
- Name: weak_import_data
Flags: [ BINDING_WEAK ]
# CHECK: 00000400 W weak_global_data
# CHECK: 00000004 W weak_global_func
# CHECK: w weak_import_data
# CHECK: w weak_import_func