diff options
author | Matthias Braun <matze@braunis.de> | 2014-12-10 01:11:56 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2014-12-10 01:11:56 +0000 |
commit | d01627b2495b6730fb09ce2c15b5917d20e1987d (patch) | |
tree | 6e530dc8f0ee8ce8d93823f628f570ba184970fa /llvm/utils/TableGen/CodeGenRegisters.h | |
parent | f0aceb2f69cae1b84e1b96f1ae9932480e801b32 (diff) | |
download | bcm5719-llvm-d01627b2495b6730fb09ce2c15b5917d20e1987d.tar.gz bcm5719-llvm-d01627b2495b6730fb09ce2c15b5917d20e1987d.zip |
Let tablegen compute maximum lanemask for regs/regclasses.
Let tablegen compute the combination of subregister lanemasks for all
subregisters in a register/register class. This is preparation for further
work subregister allocation
llvm-svn: 223873
Diffstat (limited to 'llvm/utils/TableGen/CodeGenRegisters.h')
-rw-r--r-- | llvm/utils/TableGen/CodeGenRegisters.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenRegisters.h b/llvm/utils/TableGen/CodeGenRegisters.h index c1606e35703..6baaa28d95d 100644 --- a/llvm/utils/TableGen/CodeGenRegisters.h +++ b/llvm/utils/TableGen/CodeGenRegisters.h @@ -283,6 +283,8 @@ namespace llvm { int CopyCost; bool Allocatable; std::string AltOrderSelect; + /// Contains the combination of the lane masks of all subregisters. + unsigned LaneMask; // Return the Record that defined this class, or NULL if the class was // created by TableGen. @@ -525,7 +527,7 @@ namespace llvm { void computeComposites(); // Compute a lane mask for each sub-register index. - void computeSubRegIndexLaneMasks(); + void computeSubRegLaneMasks(); public: CodeGenRegBank(RecordKeeper&); |