summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/MCTargetDesc
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2019-03-09 04:31:37 +0000
committerThomas Lively <tlively@google.com>2019-03-09 04:31:37 +0000
commit972d7d514b2fbed4c256ce3a7e258e9e5e5a5ab9 (patch)
tree8a0d91bf8f8e0c0444f4d2c79aa23a3cc43f069f /llvm/lib/Target/WebAssembly/MCTargetDesc
parentb62642a1155e2c8ef5fc63071b2093aec7904574 (diff)
downloadbcm5719-llvm-972d7d514b2fbed4c256ce3a7e258e9e5e5a5ab9.tar.gz
bcm5719-llvm-972d7d514b2fbed4c256ce3a7e258e9e5e5a5ab9.zip
[WebAssembly] Use named operands to identify loads and stores
Summary: Uses the named operands tablegen feature to look up the indices of offset, address, and p2align operands for all load and store instructions. This replaces brittle, incorrect logic for identifying loads and store when eliminating frame indices, which previously crashed on bulk-memory ops. It also cleans up the SetP2Alignment pass. Reviewers: aheejin, dschuff Subscribers: sbc100, jgravelle-google, hiraditya, sunfish, jfb, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D59007 llvm-svn: 355770
Diffstat (limited to 'llvm/lib/Target/WebAssembly/MCTargetDesc')
-rw-r--r--llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h
index faa8c69baa4..5db72910315 100644
--- a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h
+++ b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h
@@ -331,14 +331,6 @@ inline unsigned GetDefaultP2Align(unsigned Opcode) {
}
}
-/// The operand number of the load or store address in load/store instructions.
-static const unsigned LoadAddressOperandNo = 3;
-static const unsigned StoreAddressOperandNo = 2;
-
-/// The operand number of the load or store p2align in load/store instructions.
-static const unsigned LoadP2AlignOperandNo = 1;
-static const unsigned StoreP2AlignOperandNo = 0;
-
/// This is used to indicate block signatures.
enum class ExprType : unsigned {
Void = 0x40,
OpenPOWER on IntegriCloud