IRgen: Tweak CGBitFieldInfo doxyments & add an accessor.
llvm-svn: 101221
This commit is contained in:
parent
0384e63501
commit
b2b40a479d
|
@ -101,8 +101,16 @@ public:
|
|||
bool IsSigned : 1;
|
||||
|
||||
public:
|
||||
/// \brief Check whether this bit-field access is (i.e., should be sign
|
||||
/// extended on loads).
|
||||
bool isSigned() const { return IsSigned; }
|
||||
|
||||
/// \brief Get the size of the bit-field, in bits.
|
||||
unsigned getSize() const { return Size; }
|
||||
|
||||
/// @name Component Access
|
||||
/// @{
|
||||
|
||||
unsigned getNumComponents() const { return NumComponents; }
|
||||
void setNumComponents(unsigned Value) {
|
||||
assert(Value < 4 && "Invalid number of components!");
|
||||
|
@ -118,6 +126,8 @@ public:
|
|||
return Components[Index];
|
||||
}
|
||||
|
||||
/// @}
|
||||
|
||||
void print(llvm::raw_ostream &OS) const;
|
||||
void dump() const;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue