diff options
author | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-07-12 22:08:25 +0000 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-07-12 22:08:25 +0000 |
commit | d8ddf839505a1aeb8a7b1b3cdeea8a5cad3b1db0 (patch) | |
tree | e37f245afecfc8bf64e62e2bfd707529bff9d676 /llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h | |
parent | 6d187f0eff662a50057dfb379aeb5e9111239bf0 (diff) | |
download | bcm5719-llvm-d8ddf839505a1aeb8a7b1b3cdeea8a5cad3b1db0.tar.gz bcm5719-llvm-d8ddf839505a1aeb8a7b1b3cdeea8a5cad3b1db0.zip |
[WebAssembly] refactored utilities to not depend on MachineInstr
Summary:
Most of these functions can work for MachineInstr and MCInst
equally now.
Reviewers: dschuff
Subscribers: MatzeB, sbc100, jgravelle-google, aheejin, sunfish, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64643
llvm-svn: 365965
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h b/llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h index f80b49662ea..26cf84de89b 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h @@ -23,19 +23,9 @@ class WebAssemblyFunctionInfo; namespace WebAssembly { -bool isArgument(const MachineInstr &MI); -bool isCopy(const MachineInstr &MI); -bool isTee(const MachineInstr &MI); bool isChild(const MachineInstr &MI, const WebAssemblyFunctionInfo &MFI); -bool isCallDirect(const MachineInstr &MI); -bool isCallIndirect(const MachineInstr &MI); -bool isMarker(const MachineInstr &MI); bool mayThrow(const MachineInstr &MI); -/// Returns the operand number of a callee, assuming the argument is a call -/// instruction. -unsigned getCalleeOpNo(const MachineInstr &MI); - // Exception-related function names extern const char *const ClangCallTerminateFn; extern const char *const CxaBeginCatchFn; |