[BitCode] Autoupgrade inline asm elementtype attribute
authorNikita Popov <npopov@redhat.com>
Thu, 6 Jan 2022 14:02:45 +0000 (15:02 +0100)
committerNikita Popov <npopov@redhat.com>
Thu, 6 Jan 2022 14:13:01 +0000 (15:13 +0100)
commiteddd5be1df060e3b6f6a10bf8e84f262fc59a446
tree190222a8cf231850a9807b51aa0cd324c7932144
parent2c4a56c4183f4f01c0b0959acec6972fddd79b7d
[BitCode] Autoupgrade inline asm elementtype attribute

This is the autoupgrade part of D116531. If old bitcode is missing
the elementtype attribute for indirect inline asm constraints,
automatically add it. As usual, this only works when upgrading
in typed mode, we haven't figured out upgrade in opaque mode yet.
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/test/Bitcode/upgrade-inline-asm-elementtype.ll [new file with mode: 0644]
llvm/test/Bitcode/upgrade-inline-asm-elementtype.ll.bc [new file with mode: 0644]