LLVM
8.0.1
|
Optimize calls with "returned" attributes for WebAssembly. More...
#include "WebAssembly.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "wasm-optimize-returned" |
Functions | |
INITIALIZE_PASS (OptimizeReturned, DEBUG_TYPE, "Optimize calls with \eturned\attributes for WebAssembly", false, false) FunctionPass *llvm | |
Optimize calls with "returned" attributes for WebAssembly.
Definition in file WebAssemblyOptimizeReturned.cpp.
#define DEBUG_TYPE "wasm-optimize-returned" |
Definition at line 22 of file WebAssemblyOptimizeReturned.cpp.
INITIALIZE_PASS | ( | OptimizeReturned | , |
DEBUG_TYPE | , | ||
"Optimize calls with \eturned\attributes for WebAssembly" | , | ||
false | , | ||
false | |||
) |
Definition at line 51 of file WebAssemblyOptimizeReturned.cpp.
References Arg, llvm::dbgs(), F(), llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, IterTy >::getArgOperand(), llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, IterTy >::getInstruction(), llvm::Value::getName(), llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, IterTy >::getNumArgOperands(), LLVM_DEBUG, llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, IterTy >::paramHasAttr(), llvm::Attribute::Returned, runOnFunction(), llvm::Use::set(), llvm::Value::use_begin(), and llvm::Value::use_end().