aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeGenRegisters.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-02-01 23:16:41 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-02-01 23:16:41 +0000
commitb5af2d943ed568f2f4cac545b6dfb150ae9d73aa (patch)
tree13a247848babe11f9910bf5aaf5644677723ac60 /utils/TableGen/CodeGenRegisters.h
parentebf8c27caea0a1c55df649c78ced28d9fa78093e (diff)
Specify SubRegIndex components on the index itself.
It is simpler to define a composite index directly: def ssub_2 : SubRegIndex<[dsub_1, ssub_0]>; def ssub_3 : SubRegIndex<[dsub_1, ssub_1]>; Than specifying the composite indices on each register: CompositeIndices = [(ssub_2 dsub_1, ssub_0), (ssub_3 dsub_1, ssub_1)] in ... This also makes it clear that SubRegIndex composition is supposed to be unique. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenRegisters.h')
-rw-r--r--utils/TableGen/CodeGenRegisters.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenRegisters.h b/utils/TableGen/CodeGenRegisters.h
index b83ad6e785..5fc0f65739 100644
--- a/utils/TableGen/CodeGenRegisters.h
+++ b/utils/TableGen/CodeGenRegisters.h
@@ -71,6 +71,9 @@ namespace llvm {
return (Ins.second || Ins.first->second == B) ? 0 : Ins.first->second;
}
+ // Update the composite maps of components specified in 'ComposedOf'.
+ void updateComponents(CodeGenRegBank&);
+
// Clean out redundant composite mappings.
void cleanComposites();