================
@@ -23,10 +24,16 @@ class BoundsCheckingPass : public
PassInfoMixin<BoundsCheckingPass> {
public:
struct Options {
struct Runtime {
- Runtime(bool MinRuntime, bool MayReturn)
- : MinRuntime(MinRuntime), MayReturn(MayReturn) {}
+ Runtime(bool MinRuntime, bool MayReturn, bool HandlerPreserveAllRegs)
+ : MinRuntime(MinRuntime), MayReturn(MayReturn),
+ HandlerPreserveAllRegs(HandlerPreserveAllRegs) {}
bool MinRuntime;
bool MayReturn;
+ bool HandlerPreserveAllRegs;
+ bool shouldHandlerPreserveAllRegs(const Triple &T) const {
----------------
vitalybuka wrote:
No, I mean SanitizeHandlerPreserveAllRegs must be already correct
and codegen and LLVM will generated what ever they asked,
https://github.com/llvm/llvm-project/pull/168645
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits