mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
Add methods for bit width modification: sextOrTrunc, zextOrTrunc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34789 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -423,6 +423,16 @@ public:
|
||||
/// @brief Zero extend to a new width.
|
||||
APInt &zext(uint32_t width);
|
||||
|
||||
/// Make this APInt have the bit width given by \p width. The value is sign
|
||||
/// extended, truncated, or left alone to make it that width.
|
||||
/// @brief Sign extend or truncate to width
|
||||
APInt &sextOrTrunc(uint32_t width);
|
||||
|
||||
/// Make this APInt have the bit width given by \p width. The value is zero
|
||||
/// extended, truncated, or left alone to make it that width.
|
||||
/// @brief Zero extend or truncate to width
|
||||
APInt &zextOrTrunc(uint32_t width);
|
||||
|
||||
/// @brief Set every bit to 1.
|
||||
APInt& set();
|
||||
|
||||
|
Reference in New Issue
Block a user