#include "Utils/WasmAddressSpaces.h"
#include "Utils/WebAssemblyTypeUtilities.h"
#include "WebAssembly.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/IR/ValueHandle.h"
#include "llvm/Pass.h"
usingnamespacellvm;
#define DEBUG_TYPE …
namespace {
class WebAssemblyRefTypeMem2Local final
: public FunctionPass,
public InstVisitor<WebAssemblyRefTypeMem2Local> { … };
}
char WebAssemblyRefTypeMem2Local::ID = …;
INITIALIZE_PASS(…)
FunctionPass *llvm::createWebAssemblyRefTypeMem2Local() { … }
void WebAssemblyRefTypeMem2Local::visitAllocaInst(AllocaInst &AI) { … }
bool WebAssemblyRefTypeMem2Local::runOnFunction(Function &F) { … }