[PBQP] Add missing headers from r219421.
[oota-llvm.git] / lib / Target / AArch64 / AArch64PBQPRegAlloc.h
1 //===-- AArch64PBQPRegAlloc.h - AArch64 specific PBQP constraints -------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64PBQPREGALOC_H
11 #define LLVM_LIB_TARGET_AARCH64_AARCH64PBQPREGALOC_H
12
13 #include "llvm/ADT/SetVector.h"
14 #include "llvm/CodeGen/PBQPRAConstraint.h"
15
16 namespace llvm {
17
18 class A57PBQPConstraints : public PBQPRAConstraint {
19 public:
20
21   // Add A57 specific constraints to the PBQP graph.
22   void apply(PBQPRAGraph &G) override;
23
24 private:
25   SmallSetVector<unsigned, 32> Chains;
26
27   // Add the accumulator chaining constraint, inside the chain, i.e. so that
28   // parity(Rd) == parity(Ra).
29   // \return true if a constraint was added
30   bool addIntraChainConstraint(PBQPRAGraph &G, unsigned Rd, unsigned Ra);
31
32   // Add constraints between existing chains
33   void addInterChainConstraint(PBQPRAGraph &G, unsigned Rd, unsigned Ra);
34 };
35
36 }
37
38 #endif // LLVM_LIB_TARGET_AARCH64_AARCH64PBQPREGALOC_H