Return the opcode that replaces an eliminable cast pair.
Synopsis
Declared in <llvm/IR/InstrTypes.h>
static
unsigned int
isEliminableCastPair(
Instruction::CastOps firstOpcode,
Instruction::CastOps secondOpcode,
Type* SrcTy,
Type* MidTy,
Type* DstTy,
DataLayout const* DL);
Description
Determine how a pair of casts can be eliminated, if they can be at all. This is a helper function for both CastInst and ConstantExpr.
Return Value
Zero if the pair cannot be eliminated; otherwise the replacing cast opcode from SrcTy to DstTy.
Parameters
Name |
Description |
firstOpcode |
The opcode of the first cast. |
secondOpcode |
The opcode of the second cast. |
SrcTy |
The source type of the first cast. |
MidTy |
The intermediate type shared by both casts. |
DstTy |
The destination type of the second cast. |
DL |
Optional data layout for pointer sizing. |
Created with MrDocs