mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
Add an EVT::getStoreSize function, like getStoreSizeInBits but in bytes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82653 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
39523e2cfb
commit
54d4a53c42
@ -552,10 +552,16 @@ namespace llvm {
|
||||
return getExtendedSizeInBits();
|
||||
}
|
||||
|
||||
/// getStoreSize - Return the number of bytes overwritten by a store
|
||||
/// of the specified value type.
|
||||
unsigned getStoreSize() const {
|
||||
return (getSizeInBits() + 7) / 8;
|
||||
}
|
||||
|
||||
/// getStoreSizeInBits - Return the number of bits overwritten by a store
|
||||
/// of the specified value type.
|
||||
unsigned getStoreSizeInBits() const {
|
||||
return (getSizeInBits() + 7)/8*8;
|
||||
return getStoreSize() * 8;
|
||||
}
|
||||
|
||||
/// getRoundIntegerType - Rounds the bit-width of the given integer EVT up
|
||||
|
Loading…
Reference in New Issue
Block a user