• Home
  • Raw
  • Download

Lines Matching full:webassembly

1 //===-- WebAssemblyPeephole.cpp - WebAssembly Peephole Optimiztions -------===//
10 /// Late peephole optimizations for WebAssembly.
15 #include "WebAssembly.h"
28 cl::desc("WebAssembly: Disable fallthrough-return optimizations."),
34 return "WebAssembly late peephole optimizer"; in getPassName()
53 "WebAssembly peephole optimizations", false, false)
86 assert(End->getOpcode() == WebAssembly::END_FUNCTION); in maybeRewriteToFallthrough()
99 case WebAssembly::I32RegClassID: in maybeRewriteToFallthrough()
100 CopyLocalOpc = WebAssembly::COPY_I32; in maybeRewriteToFallthrough()
102 case WebAssembly::I64RegClassID: in maybeRewriteToFallthrough()
103 CopyLocalOpc = WebAssembly::COPY_I64; in maybeRewriteToFallthrough()
105 case WebAssembly::F32RegClassID: in maybeRewriteToFallthrough()
106 CopyLocalOpc = WebAssembly::COPY_F32; in maybeRewriteToFallthrough()
108 case WebAssembly::F64RegClassID: in maybeRewriteToFallthrough()
109 CopyLocalOpc = WebAssembly::COPY_F64; in maybeRewriteToFallthrough()
111 case WebAssembly::V128RegClassID: in maybeRewriteToFallthrough()
112 CopyLocalOpc = WebAssembly::COPY_V128; in maybeRewriteToFallthrough()
114 case WebAssembly::FUNCREFRegClassID: in maybeRewriteToFallthrough()
115 CopyLocalOpc = WebAssembly::COPY_FUNCREF; in maybeRewriteToFallthrough()
117 case WebAssembly::EXTERNREFRegClassID: in maybeRewriteToFallthrough()
118 CopyLocalOpc = WebAssembly::COPY_EXTERNREF; in maybeRewriteToFallthrough()
120 case WebAssembly::EXNREFRegClassID: in maybeRewriteToFallthrough()
121 CopyLocalOpc = WebAssembly::COPY_EXNREF; in maybeRewriteToFallthrough()
134 MI.setDesc(TII.get(WebAssembly::FALLTHROUGH_RETURN)); in maybeRewriteToFallthrough()
158 case WebAssembly::CALL: { in runOnMachineFunction()
185 case WebAssembly::RETURN: in runOnMachineFunction()