This website requires JavaScript.
Explore
Help
Register
Sign In
RPCSX
/
llvm
Watch
1
Star
0
Fork
0
You've already forked llvm
mirror of
https://github.com/RPCSX/llvm.git
synced
2025-01-09 21:50:38 +00:00
Code
Issues
Actions
Packages
Projects
Releases
Wiki
Activity
c7cbba03a9
llvm
/
test
/
Linker
/
Inputs
/
comdat2.ll
3 lines
57 B
LLVM
Raw
Normal View
History
Unescape
Escape
IR: Add COMDATs to the IR This new IR facility allows us to represent the object-file semantic of a COMDAT group. COMDATs allow us to tie together sections and make the inclusion of one dependent on another. This is required to implement features like MS ABI VFTables and optimizing away certain kinds of initialization in C++. This functionality is only representable in COFF and ELF, Mach-O has no similar mechanism. Differential Revision: http://reviews.llvm.org/D4178 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211920 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-27 18:19:56 +00:00
$
f
o
o
=
comdat
largest
Change the .ll syntax for comdats and add a syntactic sugar. In order to make comdats always explicit in the IR, we decided to make the syntax a bit more compact for the case of a GlobalObject in a comdat with the same name. Just dropping the $name causes problems for @foo = globabl i32 0, comdat $bar = comdat ... and declare void @foo() comdat $bar = comdat ... So the syntax is changed to @g1 = globabl i32 0, comdat($c1) @g2 = globabl i32 0, comdat and declare void @foo() comdat($c1) declare void @foo() comdat git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225302 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-06 22:55:16 +00:00
@foo
=
global
i64
43
,
comdat
(
$
f
o
o
)
Reference in New Issue
Copy Permalink