mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
38048cdb1c
On ELF and COFF an alias is just another name for a position in the file. There is no way to refer to a position in another file, so an alias to undefined is meaningless. MachO currently doesn't support aliases. The spec has a N_INDR, which when implemented will have a different set of restrictions. Adding support for it shouldn't be harder than any other IR extension. For now, having the IR represent what is actually possible with current tools makes it easier to fix the design of GlobalAlias. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203705 91177308-0d34-0410-b5e6-96231b3b80d8
147 lines
5.4 KiB
LLVM
147 lines
5.4 KiB
LLVM
; This file is used by 2011-08-22-ResolveAlias.ll
|
|
; RUN: true
|
|
|
|
%struct.HexxagonBoard = type { %struct.BitBoard64, %struct.BitBoard64 }
|
|
%struct.BitBoard64 = type { i32, i32 }
|
|
%union.pthread_attr_t = type { [56 x i8] }
|
|
%union.pthread_mutex_t = type { [40 x i8] }
|
|
%struct.timespec = type { i64, i64 }
|
|
%union.pthread_mutexattr_t = type { [4 x i8] }
|
|
%union.pthread_cond_t = type { [48 x i8] }
|
|
|
|
@_ZN13HexxagonBoardC1ERKS_ = alias void (%struct.HexxagonBoard*, %struct.HexxagonBoard*)* @_ZN13HexxagonBoardC2ERKS_
|
|
@_ZL20__gthrw_pthread_oncePiPFvvE = alias weak i32 (i32*, void ()*)* @pthread_once
|
|
@_ZL27__gthrw_pthread_getspecificj = alias weak i8* (i32)* @pthread_getspecific
|
|
@_ZL27__gthrw_pthread_setspecificjPKv = alias weak i32 (i32, i8*)* @pthread_setspecific
|
|
@_ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_ = alias weak i32 (i64*, %union.pthread_attr_t*, i8* (i8*)*, i8*)* @pthread_create
|
|
@_ZL20__gthrw_pthread_joinmPPv = alias weak i32 (i64, i8**)* @pthread_join
|
|
@_ZL21__gthrw_pthread_equalmm = alias weak i32 (i64, i64)* @pthread_equal
|
|
@_ZL20__gthrw_pthread_selfv = alias weak i64 ()* @pthread_self
|
|
@_ZL22__gthrw_pthread_detachm = alias weak i32 (i64)* @pthread_detach
|
|
@_ZL22__gthrw_pthread_cancelm = alias weak i32 (i64)* @pthread_cancel
|
|
@_ZL19__gthrw_sched_yieldv = alias weak i32 ()* @sched_yield
|
|
@_ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @pthread_mutex_lock
|
|
@_ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @pthread_mutex_trylock
|
|
@_ZL31__gthrw_pthread_mutex_timedlockP15pthread_mutex_tPK8timespec = alias weak i32 (%union.pthread_mutex_t*, %struct.timespec*)* @pthread_mutex_timedlock
|
|
@_ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @pthread_mutex_unlock
|
|
@_ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t = alias weak i32 (%union.pthread_mutex_t*, %union.pthread_mutexattr_t*)* @pthread_mutex_init
|
|
@_ZL29__gthrw_pthread_mutex_destroyP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @pthread_mutex_destroy
|
|
@_ZL30__gthrw_pthread_cond_broadcastP14pthread_cond_t = alias weak i32 (%union.pthread_cond_t*)* @pthread_cond_broadcast
|
|
@_ZL27__gthrw_pthread_cond_signalP14pthread_cond_t = alias weak i32 (%union.pthread_cond_t*)* @pthread_cond_signal
|
|
@_ZL25__gthrw_pthread_cond_waitP14pthread_cond_tP15pthread_mutex_t = alias weak i32 (%union.pthread_cond_t*, %union.pthread_mutex_t*)* @pthread_cond_wait
|
|
@_ZL30__gthrw_pthread_cond_timedwaitP14pthread_cond_tP15pthread_mutex_tPK8timespec = alias weak i32 (%union.pthread_cond_t*, %union.pthread_mutex_t*, %struct.timespec*)* @pthread_cond_timedwait
|
|
@_ZL28__gthrw_pthread_cond_destroyP14pthread_cond_t = alias weak i32 (%union.pthread_cond_t*)* @pthread_cond_destroy
|
|
@_ZL26__gthrw_pthread_key_createPjPFvPvE = alias weak i32 (i32*, void (i8*)*)* @pthread_key_create
|
|
@_ZL26__gthrw_pthread_key_deletej = alias weak i32 (i32)* @pthread_key_delete
|
|
@_ZL30__gthrw_pthread_mutexattr_initP19pthread_mutexattr_t = alias weak i32 (%union.pthread_mutexattr_t*)* @pthread_mutexattr_init
|
|
@_ZL33__gthrw_pthread_mutexattr_settypeP19pthread_mutexattr_ti = alias weak i32 (%union.pthread_mutexattr_t*, i32)* @pthread_mutexattr_settype
|
|
@_ZL33__gthrw_pthread_mutexattr_destroyP19pthread_mutexattr_t = alias weak i32 (%union.pthread_mutexattr_t*)* @pthread_mutexattr_destroy
|
|
|
|
define void @_ZN13HexxagonBoardC2ERKS_(%struct.HexxagonBoard*, %struct.HexxagonBoard*) uwtable align 2 {
|
|
ret void
|
|
}
|
|
|
|
define weak i32 @pthread_once(i32*, void ()*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i8* @pthread_getspecific(i32) {
|
|
ret i8* null
|
|
}
|
|
|
|
define weak i32 @pthread_setspecific(i32, i8*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_create(i64*, %union.pthread_attr_t*, i8* (i8*)*, i8*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_join(i64, i8**) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_equal(i64, i64) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i64 @pthread_self() {
|
|
ret i64 0
|
|
}
|
|
|
|
define weak i32 @pthread_detach(i64) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_cancel(i64) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @sched_yield() {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_mutex_lock(%union.pthread_mutex_t*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_mutex_trylock(%union.pthread_mutex_t*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_mutex_timedlock(%union.pthread_mutex_t*, %struct.timespec*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_mutex_unlock(%union.pthread_mutex_t*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_mutex_init(%union.pthread_mutex_t*, %union.pthread_mutexattr_t*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_mutex_destroy(%union.pthread_mutex_t*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_cond_broadcast(%union.pthread_cond_t*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_cond_signal(%union.pthread_cond_t*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_cond_wait(%union.pthread_cond_t*, %union.pthread_mutex_t*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_cond_timedwait(%union.pthread_cond_t*, %union.pthread_mutex_t*, %struct.timespec*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_cond_destroy(%union.pthread_cond_t*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_key_create(i32*, void (i8*)*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_key_delete(i32) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_mutexattr_init(%union.pthread_mutexattr_t*) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_mutexattr_settype(%union.pthread_mutexattr_t*, i32) {
|
|
ret i32 0
|
|
}
|
|
|
|
define weak i32 @pthread_mutexattr_destroy(%union.pthread_mutexattr_t*) {
|
|
ret i32 0
|
|
}
|