[all-commits] [llvm/llvm-project] 19c42f: [DFAPacketizer] Move DefaultVLIWScheduler class de...

DarshanRamakant via All-commits all-commits at lists.llvm.org
Sat Feb 11 01:02:21 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 19c42f672f942518b4d711a0c734693a9244f78c
      https://github.com/llvm/llvm-project/commit/19c42f672f942518b4d711a0c734693a9244f78c
  Author: Darshan Bhat <darshanbhatsirsi at gmail.com>
  Date:   2023-02-11 (Sat, 11 Feb 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/DFAPacketizer.h
    M llvm/lib/CodeGen/DFAPacketizer.cpp

  Log Message:
  -----------
  [DFAPacketizer] Move DefaultVLIWScheduler class declaration to header file

This change moves "DefaultVLIWScheduler" class declaration from
DFAPacketizer.cpp to DFAPacketizer.h.
This is needed because there is a protected class member of
type "DefaultVLIWScheduler*" in "VLIWPacketizerList" class.
The derived classes cannot use this memeber unless declaration
is available to it. More specifically :

// Without this change

```
class HexagonPacketizerList : public VLIWPacketizerList {
  public :
	HexagonPacketizerList() {
	// Below line will cause incomplete class error since
	// declaration was not available through header.
	VLIWScheduler->schedule();
  }
}
```

Reviewed By: kparzysz

Differential Revision: https://reviews.llvm.org/D139767




More information about the All-commits mailing list