| //===-- ARMNaClRewritePass.h - NaCl Sandboxing Pass ------- --*- C++ -*-===// |
| // |
| // The LLVM Compiler Infrastructure |
| // |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| // |
| //===----------------------------------------------------------------------===// |
| |
| #ifndef TARGET_ARMNACLREWRITEPASS_H |
| #define TARGET_ARMNACLREWRITEPASS_H |
| |
| #include "llvm/MC/MCNaCl.h" |
| #include "llvm/Target/TargetRegisterInfo.h" |
| #include "llvm/CodeGen/MachineInstr.h" |
| |
| namespace ARM_SFI { |
| |
| bool IsStackChange(const llvm::MachineInstr &MI, |
| const llvm::TargetRegisterInfo *TRI); |
| bool IsSandboxedStackChange(const llvm::MachineInstr &MI); |
| bool NeedSandboxStackChange(const llvm::MachineInstr &MI, |
| const llvm::TargetRegisterInfo *TRI); |
| |
| } // namespace ARM_SFI |
| |
| #endif |