]> granicus.if.org Git - llvm/commit
[Hexagon] Better determination of register classes in bit tracker
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 25 Sep 2017 19:12:55 +0000 (19:12 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 25 Sep 2017 19:12:55 +0000 (19:12 +0000)
commit3fcdad2025e704eddab667ddf68bd37e68795f5b
treee8d38242b9aa9dac59fc3131ba42cd72e45fece7
parent737f60180af3d2ede18a7425d9bcdca879dcf5f1
[Hexagon] Better determination of register classes in bit tracker

Add two callbacks to MachineEvaluator, so that specific implementations
can specify more details about register classes:
- composeWithSubRegIndex(RC,Idx), to provide the register class for a
  register from RC used in conjunction with a subregister index Idx.
- getPhysRegBitWidth(Reg), to provide the size in bits of the given
  physical register.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314136 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/BitTracker.cpp
lib/Target/Hexagon/BitTracker.h
lib/Target/Hexagon/HexagonBitTracker.cpp
lib/Target/Hexagon/HexagonBitTracker.h