[PATCH] D77124: Handle CET for -exception-model sjlj

Xiang Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 03:14:42 PDT 2020


xiangzhangllvm added inline comments.


================
Comment at: llvm/test/CodeGen/X86/indirect-branch-tracking-eh.ll:80
 
 lpad:
   %0 = landingpad { i8*, i32 }
----------------
LuoYuanke wrote:
> Also add a cache pad. Some code as this.
> 
> ```
> catch:                                            ; preds = %lpad
>   %5 = tail call i8* @__cxa_begin_catch(i8* %2) #6
>   %6 = bitcast i8* %5 to i32*
> ```
OK, but this will make test a little complex, in fact the patch is focus on dealing with the change of landpad (old +new). So current test is written very simple to show this.
Catch branch is handled in catch.dispatch which usually follow the landpad, they are direct branch.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77124/new/

https://reviews.llvm.org/D77124





More information about the llvm-commits mailing list