search for: swn_srt

Displaying 2 results from an estimated 2 matches for "swn_srt".

2014 May 26
3
[LLVMdev] GHC, aliases, and LLVM HEAD
...r symbols they reference to become available (as our internal representation, Core, allows references in any order without forward declarations). This theoretically offers a performance improvement and somewhat simplifies the code generator. Here we emit aliases like, @SWn_srt$alias = alias private i8* bitcast (%SWn_srt_struct* @SWn_srt to i8*) again, using the `$alias` in all references, Unfortunately, recent LLVMs reject both of these uses. The first is rejected as aliases can no longer reference items other than definitions, e.g. opt: hi.ll:414:36: error:...
2014 May 26
3
[LLVMdev] GHC, aliases, and LLVM HEAD
...lable (as our internal representation, Core, allows references >> in any order without forward declarations). This theoretically >> offers a performance improvement and somewhat simplifies the code >> generator. Here we emit aliases like, >> >> @SWn_srt$alias = alias private i8* bitcast (%SWn_srt_struct* @SWn_srt to i8*) >> >> again, using the `$alias` in all references, > > That should also work in llvm IR. You can create a function without a > body or a GlobalVariable without an initializer and add it afterwards. > I...