15#ifndef LLVM_CODEGEN_PBQPRACONSTRAINT_H
16#define LLVM_CODEGEN_PBQPRACONSTRAINT_H
43 virtual void anchor();
53 for (
auto &
C : Constraints)
59 Constraints.push_back(std::move(
C));
63 std::vector<std::unique_ptr<PBQPRAConstraint>> Constraints;
65 void anchor()
override;
static cl::opt< RegisterRegAlloc::FunctionPassCtor, false, RegisterPassParser< RegisterRegAlloc > > RegAlloc("regalloc", cl::Hidden, cl::init(&useDefaultRegisterAllocator), cl::desc("Register allocator to use"))
PBQP register allocation constraint composer.
void addConstraint(std::unique_ptr< PBQPRAConstraint > C)
void apply(PBQPRAGraph &G) override
Abstract base for classes implementing PBQP register allocation constraints (e.g.
virtual ~PBQPRAConstraint()=0
virtual void apply(PBQPRAGraph &G)=0
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.