Lines Matching refs:WebAssembly
1 //===-- WebAssemblyFrameLowering.cpp - WebAssembly Frame Lowering ----------==//
11 /// \brief This file contains the WebAssembly implementation of
14 /// On WebAssembly, there aren't a lot of things to do here. There are no
74 unsigned SPReg = MRI.createVirtualRegister(&WebAssembly::I32RegClass);
76 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::CONST_I32), SPReg)
84 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::LOAD_I32), SPReg)
89 unsigned OffsetReg = MRI.createVirtualRegister(&WebAssembly::I32RegClass);
90 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::CONST_I32), OffsetReg)
93 TII->get(AdjustUp ? WebAssembly::ADD_I32 : WebAssembly::SUB_I32),
94 WebAssembly::SP32)
98 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::CONST_I32), OffsetReg)
102 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::STORE_I32), WebAssembly::SP32)
105 .addReg(WebAssembly::SP32)
129 "WebAssembly should not have callee-saved registers");
150 unsigned OffsetReg = MRI.createVirtualRegister(&WebAssembly::I32RegClass);
159 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::CONST_I32), OffsetReg)
162 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::ADD_I32), WebAssembly::SP32)
163 .addReg(WebAssembly::SP32)
166 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::CONST_I32), OffsetReg)
170 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::STORE_I32), WebAssembly::SP32)
173 .addReg(WebAssembly::SP32)