14 #ifndef LLVM_CODEGEN_WASMEHFUNCINFO_H 15 #define LLVM_CODEGEN_WASMEHFUNCINFO_H 42 EHPadUnwindMap[BB] = Dest;
48 ThrowUnwindMap[BB] = Dest;
51 return EHPadUnwindMap.
count(BB);
54 return ThrowUnwindMap.
count(BB);
61 EHPadUnwindMap[MBB] = Dest;
67 ThrowUnwindMap[MBB] = Dest;
70 return EHPadUnwindMap.
count(MBB);
73 return ThrowUnwindMap.
count(MBB);
82 #endif // LLVM_CODEGEN_WASMEHFUNCINFO_H const BasicBlock * getThrowUnwindDest(BasicBlock *BB) const
bool hasEHPadUnwindDest(const BasicBlock *BB) const
This class represents lattice values for constants.
bool hasThrowUnwindDest(MachineBasicBlock *MBB) const
void setEHPadUnwindDest(MachineBasicBlock *MBB, MachineBasicBlock *Dest)
DenseMap< BBOrMBB, BBOrMBB > EHPadUnwindMap
DenseMap< BBOrMBB, BBOrMBB > ThrowUnwindMap
MachineBasicBlock * getThrowUnwindDest(MachineBasicBlock *MBB) const
LLVM Basic Block Representation.
void setEHPadUnwindDest(const BasicBlock *BB, const BasicBlock *Dest)
const BasicBlock * getEHPadUnwindDest(const BasicBlock *BB) const
bool hasThrowUnwindDest(const BasicBlock *BB) const
bool hasEHPadUnwindDest(MachineBasicBlock *MBB) const
void calculateWasmEHInfo(const Function *F, WasmEHFuncInfo &EHInfo)
size_type count(const_arg_type_t< KeyT > Val) const
Return 1 if the specified key is in the map, 0 otherwise.
ValueT lookup(const_arg_type_t< KeyT > Val) const
lookup - Return the entry for the specified key, or a default constructed value if no such entry exis...
void setThrowUnwindDest(MachineBasicBlock *MBB, MachineBasicBlock *Dest)
void setThrowUnwindDest(const BasicBlock *BB, const BasicBlock *Dest)
MachineBasicBlock * getEHPadUnwindDest(MachineBasicBlock *MBB) const
A discriminated union of two pointer types, with the discriminator in the low bit of the pointer...