Home | History | Annotate | Download | only in Linker
      1 ; This file is used by 2011-08-22-ResolveAlias.ll
      2 ; RUN: true
      3 
      4 %struct.HexxagonBoard = type { %struct.BitBoard64, %struct.BitBoard64 }
      5 %struct.BitBoard64 = type { i32, i32 }
      6 %union.pthread_attr_t = type { [56 x i8] }
      7 %union.pthread_mutex_t = type { [40 x i8] }
      8 %struct.timespec = type { i64, i64 }
      9 %union.pthread_mutexattr_t = type { [4 x i8] }
     10 %union.pthread_cond_t = type { [48 x i8] }
     11 
     12 @_ZN13HexxagonBoardC1ERKS_ = alias void (%struct.HexxagonBoard*, %struct.HexxagonBoard*)* @_ZN13HexxagonBoardC2ERKS_
     13 @_ZL20__gthrw_pthread_oncePiPFvvE = alias weak i32 (i32*, void ()*)* @pthread_once
     14 @_ZL27__gthrw_pthread_getspecificj = alias weak i8* (i32)* @pthread_getspecific
     15 @_ZL27__gthrw_pthread_setspecificjPKv = alias weak i32 (i32, i8*)* @pthread_setspecific
     16 @_ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_ = alias weak i32 (i64*, %union.pthread_attr_t*, i8* (i8*)*, i8*)* @pthread_create
     17 @_ZL20__gthrw_pthread_joinmPPv = alias weak i32 (i64, i8**)* @pthread_join
     18 @_ZL21__gthrw_pthread_equalmm = alias weak i32 (i64, i64)* @pthread_equal
     19 @_ZL20__gthrw_pthread_selfv = alias weak i64 ()* @pthread_self
     20 @_ZL22__gthrw_pthread_detachm = alias weak i32 (i64)* @pthread_detach
     21 @_ZL22__gthrw_pthread_cancelm = alias weak i32 (i64)* @pthread_cancel
     22 @_ZL19__gthrw_sched_yieldv = alias weak i32 ()* @sched_yield
     23 @_ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @pthread_mutex_lock
     24 @_ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @pthread_mutex_trylock
     25 @_ZL31__gthrw_pthread_mutex_timedlockP15pthread_mutex_tPK8timespec = alias weak i32 (%union.pthread_mutex_t*, %struct.timespec*)* @pthread_mutex_timedlock
     26 @_ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @pthread_mutex_unlock
     27 @_ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t = alias weak i32 (%union.pthread_mutex_t*, %union.pthread_mutexattr_t*)* @pthread_mutex_init
     28 @_ZL29__gthrw_pthread_mutex_destroyP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @pthread_mutex_destroy
     29 @_ZL30__gthrw_pthread_cond_broadcastP14pthread_cond_t = alias weak i32 (%union.pthread_cond_t*)* @pthread_cond_broadcast
     30 @_ZL27__gthrw_pthread_cond_signalP14pthread_cond_t = alias weak i32 (%union.pthread_cond_t*)* @pthread_cond_signal
     31 @_ZL25__gthrw_pthread_cond_waitP14pthread_cond_tP15pthread_mutex_t = alias weak i32 (%union.pthread_cond_t*, %union.pthread_mutex_t*)* @pthread_cond_wait
     32 @_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
     33 @_ZL28__gthrw_pthread_cond_destroyP14pthread_cond_t = alias weak i32 (%union.pthread_cond_t*)* @pthread_cond_destroy
     34 @_ZL26__gthrw_pthread_key_createPjPFvPvE = alias weak i32 (i32*, void (i8*)*)* @pthread_key_create
     35 @_ZL26__gthrw_pthread_key_deletej = alias weak i32 (i32)* @pthread_key_delete
     36 @_ZL30__gthrw_pthread_mutexattr_initP19pthread_mutexattr_t = alias weak i32 (%union.pthread_mutexattr_t*)* @pthread_mutexattr_init
     37 @_ZL33__gthrw_pthread_mutexattr_settypeP19pthread_mutexattr_ti = alias weak i32 (%union.pthread_mutexattr_t*, i32)* @pthread_mutexattr_settype
     38 @_ZL33__gthrw_pthread_mutexattr_destroyP19pthread_mutexattr_t = alias weak i32 (%union.pthread_mutexattr_t*)* @pthread_mutexattr_destroy
     39 
     40 define void @_ZN13HexxagonBoardC2ERKS_(%struct.HexxagonBoard*, %struct.HexxagonBoard*) uwtable align 2 {
     41   ret void
     42 }
     43 
     44 define weak i32 @pthread_once(i32*, void ()*) {
     45   ret i32 0
     46 }
     47 
     48 define weak i8* @pthread_getspecific(i32) {
     49   ret i8* null
     50 }
     51 
     52 define weak i32 @pthread_setspecific(i32, i8*) {
     53   ret i32 0
     54 }
     55 
     56 define weak i32 @pthread_create(i64*, %union.pthread_attr_t*, i8* (i8*)*, i8*) {
     57   ret i32 0
     58 }
     59 
     60 define weak i32 @pthread_join(i64, i8**) {
     61   ret i32 0
     62 }
     63 
     64 define weak i32 @pthread_equal(i64, i64) {
     65   ret i32 0
     66 }
     67 
     68 define weak i64 @pthread_self() {
     69   ret i64 0
     70 }
     71 
     72 define weak i32 @pthread_detach(i64) {
     73   ret i32 0
     74 }
     75 
     76 define weak i32 @pthread_cancel(i64) {
     77   ret i32 0
     78 }
     79 
     80 define weak i32 @sched_yield() {
     81   ret i32 0
     82 }
     83 
     84 define weak i32 @pthread_mutex_lock(%union.pthread_mutex_t*) {
     85   ret i32 0
     86 }
     87 
     88 define weak i32 @pthread_mutex_trylock(%union.pthread_mutex_t*) {
     89   ret i32 0
     90 }
     91 
     92 define weak i32 @pthread_mutex_timedlock(%union.pthread_mutex_t*, %struct.timespec*) {
     93   ret i32 0
     94 }
     95 
     96 define weak i32 @pthread_mutex_unlock(%union.pthread_mutex_t*) {
     97   ret i32 0
     98 }
     99 
    100 define weak i32 @pthread_mutex_init(%union.pthread_mutex_t*, %union.pthread_mutexattr_t*) {
    101   ret i32 0
    102 }
    103 
    104 define weak i32 @pthread_mutex_destroy(%union.pthread_mutex_t*) {
    105   ret i32 0
    106 }
    107 
    108 define weak i32 @pthread_cond_broadcast(%union.pthread_cond_t*) {
    109   ret i32 0
    110 }
    111 
    112 define weak i32 @pthread_cond_signal(%union.pthread_cond_t*) {
    113   ret i32 0
    114 }
    115 
    116 define weak i32 @pthread_cond_wait(%union.pthread_cond_t*, %union.pthread_mutex_t*) {
    117   ret i32 0
    118 }
    119 
    120 define weak i32 @pthread_cond_timedwait(%union.pthread_cond_t*, %union.pthread_mutex_t*, %struct.timespec*) {
    121   ret i32 0
    122 }
    123 
    124 define weak i32 @pthread_cond_destroy(%union.pthread_cond_t*) {
    125   ret i32 0
    126 }
    127 
    128 define weak i32 @pthread_key_create(i32*, void (i8*)*) {
    129   ret i32 0
    130 }
    131 
    132 define weak i32 @pthread_key_delete(i32) {
    133   ret i32 0
    134 }
    135 
    136 define weak i32 @pthread_mutexattr_init(%union.pthread_mutexattr_t*) {
    137   ret i32 0
    138 }
    139 
    140 define weak i32 @pthread_mutexattr_settype(%union.pthread_mutexattr_t*, i32) {
    141   ret i32 0
    142 }
    143 
    144 define weak i32 @pthread_mutexattr_destroy(%union.pthread_mutexattr_t*) {
    145   ret i32 0
    146 }
    147