Skip to content

Commit 5893b1e

Browse files
committed
Reformat
1 parent 168ecd7 commit 5893b1e

File tree

5 files changed

+90
-94
lines changed

5 files changed

+90
-94
lines changed

llvm/include/llvm/CodeGen/RuntimeLibcalls.h

Lines changed: 84 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -19,95 +19,91 @@
1919

2020
namespace llvm {
2121
namespace RTLIB {
22-
/// RTLIB::Libcall enum - This enum defines all of the runtime library calls
23-
/// the backend can emit. The various long double types cannot be merged,
24-
/// because 80-bit library functions use "xf" and 128-bit use "tf".
25-
///
26-
/// When adding PPCF128 functions here, note that their names generally need
27-
/// to be overridden for Darwin with the xxx$LDBL128 form. See
28-
/// PPCISelLowering.cpp.
29-
///
30-
enum Libcall {
22+
/// RTLIB::Libcall enum - This enum defines all of the runtime library calls
23+
/// the backend can emit. The various long double types cannot be merged,
24+
/// because 80-bit library functions use "xf" and 128-bit use "tf".
25+
///
26+
/// When adding PPCF128 functions here, note that their names generally need
27+
/// to be overridden for Darwin with the xxx$LDBL128 form. See
28+
/// PPCISelLowering.cpp.
29+
///
30+
enum Libcall {
3131
#define HANDLE_LIBCALL(code, name) code,
32-
#include "llvm/IR/RuntimeLibcalls.def"
32+
#include "llvm/IR/RuntimeLibcalls.def"
3333
#undef HANDLE_LIBCALL
34-
};
35-
36-
/// GetFPLibCall - Helper to return the right libcall for the given floating
37-
/// point type, or UNKNOWN_LIBCALL if there is none.
38-
Libcall getFPLibCall(EVT VT,
39-
Libcall Call_F32,
40-
Libcall Call_F64,
41-
Libcall Call_F80,
42-
Libcall Call_F128,
43-
Libcall Call_PPCF128);
44-
45-
/// getFPEXT - Return the FPEXT_*_* value for the given types, or
46-
/// UNKNOWN_LIBCALL if there is none.
47-
Libcall getFPEXT(EVT OpVT, EVT RetVT);
48-
49-
/// getFPROUND - Return the FPROUND_*_* value for the given types, or
50-
/// UNKNOWN_LIBCALL if there is none.
51-
Libcall getFPROUND(EVT OpVT, EVT RetVT);
52-
53-
/// getFPTOSINT - Return the FPTOSINT_*_* value for the given types, or
54-
/// UNKNOWN_LIBCALL if there is none.
55-
Libcall getFPTOSINT(EVT OpVT, EVT RetVT);
56-
57-
/// getFPTOUINT - Return the FPTOUINT_*_* value for the given types, or
58-
/// UNKNOWN_LIBCALL if there is none.
59-
Libcall getFPTOUINT(EVT OpVT, EVT RetVT);
60-
61-
/// getSINTTOFP - Return the SINTTOFP_*_* value for the given types, or
62-
/// UNKNOWN_LIBCALL if there is none.
63-
Libcall getSINTTOFP(EVT OpVT, EVT RetVT);
64-
65-
/// getUINTTOFP - Return the UINTTOFP_*_* value for the given types, or
66-
/// UNKNOWN_LIBCALL if there is none.
67-
Libcall getUINTTOFP(EVT OpVT, EVT RetVT);
68-
69-
/// getPOWI - Return the POWI_* value for the given types, or
70-
/// UNKNOWN_LIBCALL if there is none.
71-
Libcall getPOWI(EVT RetVT);
72-
73-
/// getLDEXP - Return the LDEXP_* value for the given types, or
74-
/// UNKNOWN_LIBCALL if there is none.
75-
Libcall getLDEXP(EVT RetVT);
76-
77-
/// getFREXP - Return the FREXP_* value for the given types, or
78-
/// UNKNOWN_LIBCALL if there is none.
79-
Libcall getFREXP(EVT RetVT);
80-
81-
/// Return the SYNC_FETCH_AND_* value for the given opcode and type, or
82-
/// UNKNOWN_LIBCALL if there is none.
83-
Libcall getSYNC(unsigned Opc, MVT VT);
84-
85-
/// Return the outline atomics value for the given atomic ordering, access
86-
/// size and set of libcalls for a given atomic, or UNKNOWN_LIBCALL if there
87-
/// is none.
88-
Libcall getOutlineAtomicHelper(const Libcall (&LC)[5][4],
89-
AtomicOrdering Order, uint64_t MemSize);
90-
91-
/// Return the outline atomics value for the given opcode, atomic ordering
92-
/// and type, or UNKNOWN_LIBCALL if there is none.
93-
Libcall getOUTLINE_ATOMIC(unsigned Opc, AtomicOrdering Order, MVT VT);
94-
95-
/// getMEMCPY_ELEMENT_UNORDERED_ATOMIC - Return
96-
/// MEMCPY_ELEMENT_UNORDERED_ATOMIC_* value for the given element size or
97-
/// UNKNOW_LIBCALL if there is none.
98-
Libcall getMEMCPY_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
99-
100-
/// getMEMMOVE_ELEMENT_UNORDERED_ATOMIC - Return
101-
/// MEMMOVE_ELEMENT_UNORDERED_ATOMIC_* value for the given element size or
102-
/// UNKNOW_LIBCALL if there is none.
103-
Libcall getMEMMOVE_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
104-
105-
/// getMEMSET_ELEMENT_UNORDERED_ATOMIC - Return
106-
/// MEMSET_ELEMENT_UNORDERED_ATOMIC_* value for the given element size or
107-
/// UNKNOW_LIBCALL if there is none.
108-
Libcall getMEMSET_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
109-
110-
}
111-
}
34+
};
35+
36+
/// GetFPLibCall - Helper to return the right libcall for the given floating
37+
/// point type, or UNKNOWN_LIBCALL if there is none.
38+
Libcall getFPLibCall(EVT VT, Libcall Call_F32, Libcall Call_F64,
39+
Libcall Call_F80, Libcall Call_F128, Libcall Call_PPCF128);
40+
41+
/// getFPEXT - Return the FPEXT_*_* value for the given types, or
42+
/// UNKNOWN_LIBCALL if there is none.
43+
Libcall getFPEXT(EVT OpVT, EVT RetVT);
44+
45+
/// getFPROUND - Return the FPROUND_*_* value for the given types, or
46+
/// UNKNOWN_LIBCALL if there is none.
47+
Libcall getFPROUND(EVT OpVT, EVT RetVT);
48+
49+
/// getFPTOSINT - Return the FPTOSINT_*_* value for the given types, or
50+
/// UNKNOWN_LIBCALL if there is none.
51+
Libcall getFPTOSINT(EVT OpVT, EVT RetVT);
52+
53+
/// getFPTOUINT - Return the FPTOUINT_*_* value for the given types, or
54+
/// UNKNOWN_LIBCALL if there is none.
55+
Libcall getFPTOUINT(EVT OpVT, EVT RetVT);
56+
57+
/// getSINTTOFP - Return the SINTTOFP_*_* value for the given types, or
58+
/// UNKNOWN_LIBCALL if there is none.
59+
Libcall getSINTTOFP(EVT OpVT, EVT RetVT);
60+
61+
/// getUINTTOFP - Return the UINTTOFP_*_* value for the given types, or
62+
/// UNKNOWN_LIBCALL if there is none.
63+
Libcall getUINTTOFP(EVT OpVT, EVT RetVT);
64+
65+
/// getPOWI - Return the POWI_* value for the given types, or
66+
/// UNKNOWN_LIBCALL if there is none.
67+
Libcall getPOWI(EVT RetVT);
68+
69+
/// getLDEXP - Return the LDEXP_* value for the given types, or
70+
/// UNKNOWN_LIBCALL if there is none.
71+
Libcall getLDEXP(EVT RetVT);
72+
73+
/// getFREXP - Return the FREXP_* value for the given types, or
74+
/// UNKNOWN_LIBCALL if there is none.
75+
Libcall getFREXP(EVT RetVT);
76+
77+
/// Return the SYNC_FETCH_AND_* value for the given opcode and type, or
78+
/// UNKNOWN_LIBCALL if there is none.
79+
Libcall getSYNC(unsigned Opc, MVT VT);
80+
81+
/// Return the outline atomics value for the given atomic ordering, access
82+
/// size and set of libcalls for a given atomic, or UNKNOWN_LIBCALL if there
83+
/// is none.
84+
Libcall getOutlineAtomicHelper(const Libcall (&LC)[5][4], AtomicOrdering Order,
85+
uint64_t MemSize);
86+
87+
/// Return the outline atomics value for the given opcode, atomic ordering
88+
/// and type, or UNKNOWN_LIBCALL if there is none.
89+
Libcall getOUTLINE_ATOMIC(unsigned Opc, AtomicOrdering Order, MVT VT);
90+
91+
/// getMEMCPY_ELEMENT_UNORDERED_ATOMIC - Return
92+
/// MEMCPY_ELEMENT_UNORDERED_ATOMIC_* value for the given element size or
93+
/// UNKNOW_LIBCALL if there is none.
94+
Libcall getMEMCPY_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
95+
96+
/// getMEMMOVE_ELEMENT_UNORDERED_ATOMIC - Return
97+
/// MEMMOVE_ELEMENT_UNORDERED_ATOMIC_* value for the given element size or
98+
/// UNKNOW_LIBCALL if there is none.
99+
Libcall getMEMMOVE_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
100+
101+
/// getMEMSET_ELEMENT_UNORDERED_ATOMIC - Return
102+
/// MEMSET_ELEMENT_UNORDERED_ATOMIC_* value for the given element size or
103+
/// UNKNOW_LIBCALL if there is none.
104+
Libcall getMEMSET_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
105+
106+
} // namespace RTLIB
107+
} // namespace llvm
112108

113109
#endif

llvm/include/llvm/LTO/LTO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ class LTO {
301301

302302
/// Static method that returns a list of libcall symbols that can be generated
303303
/// by LTO but might not be visible from bitcode symbol table.
304-
static ArrayRef<const char*> getRuntimeLibcallSymbols();
304+
static ArrayRef<const char *> getRuntimeLibcallSymbols();
305305

306306
private:
307307
Config Conf;

llvm/lib/CodeGen/TargetLoweringBase.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ static bool darwinHasSinCos(const Triple &TT) {
114114
}
115115

116116
void TargetLoweringBase::InitLibcalls(const Triple &TT) {
117-
#define HANDLE_LIBCALL(code, name) \
118-
setLibcallName(RTLIB::code, name);
117+
#define HANDLE_LIBCALL(code, name) setLibcallName(RTLIB::code, name);
119118
#include "llvm/IR/RuntimeLibcalls.def"
120119
#undef HANDLE_LIBCALL
121120
// Initialize calling conventions to their default.
@@ -985,7 +984,8 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm) : TM(tm) {
985984
MinCmpXchgSizeInBits = 0;
986985
SupportsUnalignedAtomics = false;
987986

988-
std::fill(std::begin(LibcallRoutineNames), std::end(LibcallRoutineNames), nullptr);
987+
std::fill(std::begin(LibcallRoutineNames), std::end(LibcallRoutineNames),
988+
nullptr);
989989

990990
InitLibcalls(TM.getTargetTriple());
991991
InitCmpLibcallCCs(CmpLibcallCCs);

llvm/lib/LTO/LTO.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ static const char *libcallRoutineNames[] = {
13631363
#undef HANDLE_LIBCALL
13641364
};
13651365

1366-
ArrayRef<const char*> LTO::getRuntimeLibcallSymbols() {
1366+
ArrayRef<const char *> LTO::getRuntimeLibcallSymbols() {
13671367
return ArrayRef(libcallRoutineNames);
13681368
}
13691369

llvm/lib/Target/Hexagon/HexagonISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
#include "llvm/IR/DiagnosticPrinter.h"
4040
#include "llvm/IR/Function.h"
4141
#include "llvm/IR/GlobalValue.h"
42+
#include "llvm/IR/IRBuilder.h"
4243
#include "llvm/IR/InlineAsm.h"
4344
#include "llvm/IR/Instructions.h"
4445
#include "llvm/IR/IntrinsicInst.h"
4546
#include "llvm/IR/Intrinsics.h"
4647
#include "llvm/IR/IntrinsicsHexagon.h"
47-
#include "llvm/IR/IRBuilder.h"
4848
#include "llvm/IR/Module.h"
4949
#include "llvm/IR/Type.h"
5050
#include "llvm/IR/Value.h"

0 commit comments

Comments
 (0)