author | Rafael Espindola <rafael.espindola@gmail.com> | |
Tue, 6 Jan 2015 22:55:16 +0000 (22:55 +0000) | ||
committer | Rafael Espindola <rafael.espindola@gmail.com> | |
Tue, 6 Jan 2015 22:55:16 +0000 (22:55 +0000) | ||
commit | f907a26bc28c1c2e9e7026815a5271bc393d2933 | |
tree | 331be722fdac69ed3a6d89a5d270e5e8dfc28c24 | tree | snapshot (tar.xz tar.gz zip) |
parent | 8e9ba0e588096d9d8c680999c83350a989bd709d | commit | diff |
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
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
40 files changed: