llvm-project/llvm/test/CodeGen
Guanzhong Chen b88ebe8cc9 [WebAssembly] Prevent inline assembly from being mangled by SjLj
Summary:
Before, inline assembly gets mangled by the SjLj transformation.

For example, in a function with setjmp/longjmp, this LLVM IR code

    call void asm sideeffect "", ""()

would be transformed into

    call void @__invoke_void(void ()* asm sideeffect "", "")

This is invalid, and results in the error:

    Cannot take the address of an inline asm!

In this diff, we skip the transformation for inline assembly.

Reviewers: aheejin, tlively

Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64115

llvm-svn: 364985
2019-07-03 00:37:49 +00:00
..
AArch64 [AArch64][GlobalISel] Teach tryOptSelect to handle G_ICMP 2019-07-02 19:44:16 +00:00
AMDGPU CodeGen: Set hasSideEffects = 0 on BUNDLE 2019-07-03 00:30:47 +00:00
ARC [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
ARM CodeGen: Set hasSideEffects = 0 on BUNDLE 2019-07-03 00:30:47 +00:00
AVR [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
BPF [BPF] generate R_BPF_NONE relocation for BTF DataSec variables 2019-05-26 21:26:06 +00:00
Generic Revert "r364412 [ExpandMemCmp][MergeICmps] Move passes out of CodeGen into opt pipeline." 2019-06-26 12:13:13 +00:00
Hexagon [Hexagon] Custom-lower UADDO(x, 1) and USUBO(x, 1) 2019-07-01 15:50:09 +00:00
Inputs
Lanai [Lanai] auto-generate complete test checks; NFC 2019-06-28 20:45:32 +00:00
MIR [MachineFunction] Base support for call site info tracking 2019-06-27 07:48:06 +00:00
MSP430 [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
Mips [MIPS GlobalISel] Select integer to floating point conversions 2019-06-20 09:05:02 +00:00
NVPTX
PowerPC [NFC][Codegen][X86][AArch64][ARM][PowerPC] Recommit: Add test coverage for "add-of-inc" vs "sub-of-not" 2019-07-02 16:48:49 +00:00
RISCV [RISCV] Add RISCV-specific TargetTransformInfo 2019-06-21 13:36:09 +00:00
SPARC [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
SystemZ Allow matching extend-from-memory with strict FP nodes 2019-06-26 17:19:12 +00:00
Thumb [ARM] Fix unwind info for Thumb1 functions that save high registers. 2019-07-02 21:35:15 +00:00
Thumb2 [ARM] MVE: allow soft-float ABI to pass vector types. 2019-07-02 11:26:11 +00:00
WebAssembly [WebAssembly] Prevent inline assembly from being mangled by SjLj 2019-07-03 00:37:49 +00:00
WinCFGuard
WinEH [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
X86 Add support for the 'macCatalyst' MachO platform 2019-07-02 23:47:11 +00:00
XCore [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00