diff options
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64GISelAccessor.h')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64GISelAccessor.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64GISelAccessor.h b/llvm/lib/Target/AArch64/AArch64GISelAccessor.h new file mode 100644 index 00000000000..b5f22c7f380 --- /dev/null +++ b/llvm/lib/Target/AArch64/AArch64GISelAccessor.h @@ -0,0 +1,33 @@ +//===-- AArch64GISelAccessor.h - AArch64 GISel Accessor ---------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +/// This file declares the API to access the various APIs related +/// to GlobalISel. +// +//===----------------------------------------------------------------------===/ + +#ifndef LLVM_LIB_TARGET_AARCH64_AARCH64GISELACCESSOR_H +#define LLVM_LIB_TARGET_AARCH64_AARCH64GISELACCESSOR_H + +namespace llvm { +class CallLowering; +class RegisterBankInfo; + +/// The goal of this helper class is to gather the accessor to all +/// the APIs related to GlobalISel. +/// It should be derived to feature an actual accessor to the GISel APIs. +/// The reason why this is not simply done into the subtarget is to avoid +/// spreading ifdefs around. +struct AArch64GISelAccessor { + virtual ~AArch64GISelAccessor() {} + virtual const CallLowering *getCallLowering() const { return nullptr;} + virtual const RegisterBankInfo *getRegBankInfo() const { return nullptr;} +}; +} // End namespace llvm; +#endif |

