Skip to content

Commit 6df9a13

Browse files
authored
[orc-rt] Use LLVM-style header naming scheme. (llvm#154881)
This is more consistent with the rest of the LLVM project, and the resulting names are closer to the types defined in each of the headers.
1 parent d26ea02 commit 6df9a13

File tree

13 files changed

+32
-32
lines changed

13 files changed

+32
-32
lines changed

orc-rt/include/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
set(ORC_RT_HEADERS
22
orc-rt-c/orc-rt.h
3-
orc-rt/bitmask-enum.h
4-
orc-rt/error.h
5-
orc-rt/compiler.h
6-
orc-rt/math.h
7-
orc-rt/rtti.h
3+
orc-rt/BitmaskEnum.h
4+
orc-rt/Compiler.h
5+
orc-rt/Error.h
6+
orc-rt/Math.h
7+
orc-rt/RTTI.h
88
orc-rt/span.h
99
orc-rt/unique-function.h
1010
)

orc-rt/include/orc-rt/bitmask-enum.h renamed to orc-rt/include/orc-rt/BitmaskEnum.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===---- bitmask-enum.h - Enable bitmask operations on enums ---*- C++ -*-===//
1+
//===---- BitmaskEnum.h - Enable bitmask operations on enums ----*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -13,10 +13,10 @@
1313
//
1414
//===----------------------------------------------------------------------===//
1515

16-
#ifndef ORC_RT_BITMASK_ENUM_H
17-
#define ORC_RT_BITMASK_ENUM_H
16+
#ifndef ORC_RT_BITMASKENUM_H
17+
#define ORC_RT_BITMASKENUM_H
1818

19-
#include "math.h"
19+
#include "Math.h"
2020

2121
#include <cassert>
2222
#include <type_traits>
@@ -158,4 +158,4 @@ constexpr E &operator^=(E &LHS, E RHS) noexcept {
158158

159159
} // namespace orc_rt
160160

161-
#endif // ORC_RT_BITMASK_ENUM_H
161+
#endif // ORC_RT_BITMASKENUM_H

orc-rt/include/orc-rt/compiler.h renamed to orc-rt/include/orc-rt/Compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--------- compiler.h - Compiler abstraction support --------*- C++ -*-===//
1+
//===--------- Compiler.h - Compiler abstraction support --------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

orc-rt/include/orc-rt/error.h renamed to orc-rt/include/orc-rt/Error.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-------- error.h - Enforced error checking for ORC RT ------*- C++ -*-===//
1+
//===-------- Error.h - Enforced error checking for ORC RT ------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +9,8 @@
99
#ifndef ORC_RT_ERROR_H
1010
#define ORC_RT_ERROR_H
1111

12-
#include "orc-rt/compiler.h"
13-
#include "orc-rt/rtti.h"
12+
#include "orc-rt/Compiler.h"
13+
#include "orc-rt/RTTI.h"
1414

1515
#include <cassert>
1616
#include <cstdlib>

orc-rt/include/orc-rt/math.h renamed to orc-rt/include/orc-rt/Math.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--------- math.h - Math helpers for the ORC runtime --------*- C++ -*-===//
1+
//===--------- Math.h - Math helpers for the ORC runtime --------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

orc-rt/include/orc-rt/rtti.h renamed to orc-rt/include/orc-rt/RTTI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===------------- rtti.h - RTTI support for ORC RT -------------*- C++ -*-===//
1+
//===------------- RTTI.h - RTTI support for ORC RT -------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

orc-rt/lib/executor/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set(files
22
orc-rt-executor.cpp
3-
rtti.cpp
3+
RTTI.cpp
44
)
55

66
add_library(orc-rt-executor STATIC ${files})

orc-rt/lib/executor/rtti.cpp renamed to orc-rt/lib/executor/RTTI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- rtti.cpp -----------------------------------------------------------===//
1+
//===- RTTI.cpp -----------------------------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -14,7 +14,7 @@
1414
//
1515
//===----------------------------------------------------------------------===//
1616

17-
#include "orc-rt/rtti.h"
17+
#include "orc-rt/RTTI.h"
1818

1919
namespace orc_rt {
2020

orc-rt/unittests/bitmask-enum-test.cpp renamed to orc-rt/unittests/BitmaskEnumTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
//===-- bitmask-enum-test.cpp ---------------------------------------------===//
1+
//===- BitmaskEnumTest.cpp ------------------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// This file is a part of the ORC runtime.
9+
// Test bitmask-enum support APIs.
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "orc-rt/bitmask-enum.h"
13+
#include "orc-rt/BitmaskEnum.h"
1414
#include "gtest/gtest.h"
1515

1616
#include <sstream>

orc-rt/unittests/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ function(add_orc_rt_unittest test_dirname)
1212
endfunction()
1313

1414
add_orc_rt_unittest(CoreTests
15-
bitmask-enum-test.cpp
16-
error-test.cpp
17-
math-test.cpp
18-
rtti-test.cpp
15+
BitmaskEnumTest.cpp
16+
ErrorTest.cpp
17+
MathTest.cpp
18+
RTTITest.cpp
1919
span-test.cpp
2020
unique-function-test.cpp
2121
DISABLE_LLVM_LINK_LLVM_DYLIB

0 commit comments

Comments
 (0)