aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2017-09-20 21:35:51 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2017-09-20 21:35:51 +0000
commit076468c0d029c237a36972b8877908b549dae416 (patch)
treea3d41b2e0ac2e83ee1d46c80489a8027b0395559 /llvm/lib/Target/ARM/ARMCallLowering.h
parentRevert "Revert "ExecutionEngine: add R_AARCH64_ABS{16,32}"" (diff)
downloadllvm-project-076468c0d029c237a36972b8877908b549dae416.tar.gz
llvm-project-076468c0d029c237a36972b8877908b549dae416.tar.bz2
llvm-project-076468c0d029c237a36972b8877908b549dae416.zip
[ARM] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 313823
Diffstat (limited to 'llvm/lib/Target/ARM/ARMCallLowering.h')
-rw-r--r--llvm/lib/Target/ARM/ARMCallLowering.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/llvm/lib/Target/ARM/ARMCallLowering.h b/llvm/lib/Target/ARM/ARMCallLowering.h
index f5a6872336f6..86854c53f179 100644
--- a/llvm/lib/Target/ARM/ARMCallLowering.h
+++ b/llvm/lib/Target/ARM/ARMCallLowering.h
@@ -1,4 +1,4 @@
-//===-- llvm/lib/Target/ARM/ARMCallLowering.h - Call lowering -------------===//
+//===- llvm/lib/Target/ARM/ARMCallLowering.h - Call lowering ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -6,23 +6,28 @@
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
-///
+//
/// \file
/// This file describes how to lower LLVM calls to machine code calls.
-///
+//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIB_TARGET_ARM_ARMCALLLOWERING
-#define LLVM_LIB_TARGET_ARM_ARMCALLLOWERING
+#ifndef LLVM_LIB_TARGET_ARM_ARMCALLLOWERING_H
+#define LLVM_LIB_TARGET_ARM_ARMCALLLOWERING_H
-#include "llvm/CodeGen/CallingConvLower.h"
+#include "llvm/ADT/ArrayRef.h"
#include "llvm/CodeGen/GlobalISel/CallLowering.h"
-#include "llvm/CodeGen/ValueTypes.h"
+#include "llvm/IR/CallingConv.h"
+#include <cstdint>
+#include <functional>
namespace llvm {
class ARMTargetLowering;
+class MachineFunction;
class MachineInstrBuilder;
+class MachineIRBuilder;
+class Value;
class ARMCallLowering : public CallLowering {
public:
@@ -42,7 +47,7 @@ private:
bool lowerReturnVal(MachineIRBuilder &MIRBuilder, const Value *Val,
unsigned VReg, MachineInstrBuilder &Ret) const;
- typedef std::function<void(unsigned Reg, uint64_t Offset)> SplitArgTy;
+ using SplitArgTy = std::function<void(unsigned Reg, uint64_t Offset)>;
/// Split an argument into one or more arguments that the CC lowering can cope
/// with (e.g. replace pointers with integers).
@@ -51,5 +56,7 @@ private:
MachineFunction &MF,
const SplitArgTy &PerformArgSplit) const;
};
-} // End of namespace llvm
-#endif
+
+} // end namespace llvm
+
+#endif // LLVM_LIB_TARGET_ARM_ARMCALLLOWERING_H