Skip to content

Commit

Permalink
Bump LLVM to 813f7c3 (llvm#3873)
Browse files Browse the repository at this point in the history
This commit bumps the llvm-project to
llvm/llvm-project@813f7c3.

This commit also updates the usage of `APInt` in `unpack-quant-tensor`
pass by explicitly setting the `implicitTrunc` arg to be `True` whose
default value was changed from True to False here
llvm/llvm-project@3494ee9.

Signed-off-by: Vivek Khandelwal <vivekkhandelwal1424@gmail.com>
  • Loading branch information
vivekkhandelwal1 authored Nov 15, 2024
1 parent fe2f649 commit 0eba539
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion externals/llvm-project
Submodule llvm-project updated 10963 files
3 changes: 2 additions & 1 deletion lib/Dialect/TorchConversion/Transforms/UnpackQuantTensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ class UnpackQuantizedMatmulWeights
char mask = (1 << unpackedBitWidth) - 1;
for (int b = 0; b < packRatio; b++) {
newData[i * packRatio + b] =
APInt(unpackedBitWidth, (el & mask) >> (unpackedBitWidth * b));
APInt(unpackedBitWidth, (el & mask) >> (unpackedBitWidth * b),
/*isSigned=*/false, /*implicitTrunc=*/true);
mask = mask << unpackedBitWidth;
}
}
Expand Down

0 comments on commit 0eba539

Please sign in to comment.