Skip to content

Commit ab05ae5

Browse files
committed
Clarify meaning of artificial
1 parent a82ac46 commit ab05ae5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/include/llvm/MC/MCRegisterInfo.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,9 @@ class MCRegisterInfo {
399399
/// Returns true if the given register is constant.
400400
bool isConstant(MCRegister RegNo) const { return get(RegNo).IsConstant; }
401401

402-
/// Returns true if the given register is artificial.
402+
/// Returns true if the given register is artificial, which means it
403+
/// represents a regunit that is not separately addressable but still needs to
404+
/// be modelled, such as the top 16-bits of a 32-bit GPR.
403405
bool isArtificial(MCRegister RegNo) const { return get(RegNo).IsArtificial; }
404406

405407
/// Return the number of registers this target has (useful for

0 commit comments

Comments
 (0)