LLVM  16.0.0git
Macros | Functions
WebAssemblyLowerBrUnless.cpp File Reference
#include "MCTargetDesc/WebAssemblyMCTargetDesc.h"
#include "WebAssembly.h"
#include "WebAssemblyMachineFunctionInfo.h"
#include "WebAssemblySubtarget.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for WebAssemblyLowerBrUnless.cpp:

Go to the source code of this file.


#define DEBUG_TYPE   "wasm-lower-br_unless"


 INITIALIZE_PASS (WebAssemblyLowerBrUnless, DEBUG_TYPE, "Lowers br_unless into inverted br_if", false, false) FunctionPass *llvm

Detailed Description

This file lowers br_unless into br_if with an inverted condition.

br_unless is not currently in the spec, but it's very convenient for LLVM to use. This pass allows LLVM to use it, for now.

Definition in file WebAssemblyLowerBrUnless.cpp.

Macro Definition Documentation


#define DEBUG_TYPE   "wasm-lower-br_unless"

Definition at line 27 of file WebAssemblyLowerBrUnless.cpp.

Function Documentation


INITIALIZE_PASS ( WebAssemblyLowerBrUnless  ,
"Lowers br_unless into inverted br_if ,
false  ,

Definition at line 49 of file WebAssemblyLowerBrUnless.cpp.