Return a truncating cast of C to type Ty.
Declared in <llvm/IR/Constants.h>
static
Constant*
getTrunc(
Constant* C,
Type* Ty,
bool OnlyIfReduced = false);
A truncating cast of C to type Ty.
| Name | Description |
|---|---|
| C | The constant to truncate. |
| Ty | The destination type. |
| OnlyIfReduced | If true, return null unless the expression reduces. |