forked from OSchip/llvm-project
[SE] Remove Utils directory
Summary: There is no purpose in splitting out the Error class from the rest of the StreamExecutor code. This organization was just a vestige of an old failed design. Plus, this change fixes a bug in the build where the utilites library was not being statically linked in with libstreamexecutor. Reviewers: jlebar, jprice Subscribers: beanz, parallel_libs-commits Differential Revision: https://reviews.llvm.org/D24434 llvm-svn: 281118
This commit is contained in:
parent
124384f08d
commit
a3ad6dcfaf
|
@ -17,9 +17,9 @@
|
|||
|
||||
#include <type_traits>
|
||||
|
||||
#include "streamexecutor/Error.h"
|
||||
#include "streamexecutor/KernelSpec.h"
|
||||
#include "streamexecutor/PlatformDevice.h"
|
||||
#include "streamexecutor/Utils/Error.h"
|
||||
|
||||
namespace streamexecutor {
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <cassert>
|
||||
#include <cstddef>
|
||||
|
||||
#include "streamexecutor/Utils/Error.h"
|
||||
#include "streamexecutor/Error.h"
|
||||
|
||||
namespace streamexecutor {
|
||||
|
||||
|
|
|
@ -160,8 +160,8 @@
|
|||
///
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef STREAMEXECUTOR_UTILS_ERROR_H
|
||||
#define STREAMEXECUTOR_UTILS_ERROR_H
|
||||
#ifndef STREAMEXECUTOR_ERROR_H
|
||||
#define STREAMEXECUTOR_ERROR_H
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
|
@ -212,4 +212,4 @@ void dieIfError(Error &&E);
|
|||
|
||||
} // namespace streamexecutor
|
||||
|
||||
#endif // STREAMEXECUTOR_UTILS_ERROR_H
|
||||
#endif // STREAMEXECUTOR_ERROR_H
|
|
@ -21,8 +21,8 @@
|
|||
#ifndef STREAMEXECUTOR_KERNEL_H
|
||||
#define STREAMEXECUTOR_KERNEL_H
|
||||
|
||||
#include "streamexecutor/Error.h"
|
||||
#include "streamexecutor/KernelSpec.h"
|
||||
#include "streamexecutor/Utils/Error.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#ifndef STREAMEXECUTOR_PLATFORM_H
|
||||
#define STREAMEXECUTOR_PLATFORM_H
|
||||
|
||||
#include "streamexecutor/Utils/Error.h"
|
||||
#include "streamexecutor/Error.h"
|
||||
|
||||
namespace streamexecutor {
|
||||
|
||||
|
|
|
@ -20,10 +20,10 @@
|
|||
#define STREAMEXECUTOR_PLATFORMDEVICE_H
|
||||
|
||||
#include "streamexecutor/DeviceMemory.h"
|
||||
#include "streamexecutor/Error.h"
|
||||
#include "streamexecutor/Kernel.h"
|
||||
#include "streamexecutor/LaunchDimensions.h"
|
||||
#include "streamexecutor/PackedKernelArgumentArray.h"
|
||||
#include "streamexecutor/Utils/Error.h"
|
||||
|
||||
namespace streamexecutor {
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
|
||||
#include <map>
|
||||
|
||||
#include "streamexecutor/Error.h"
|
||||
#include "streamexecutor/Platform.h"
|
||||
#include "streamexecutor/Utils/Error.h"
|
||||
|
||||
namespace streamexecutor {
|
||||
|
||||
|
|
|
@ -35,11 +35,11 @@
|
|||
#include <string>
|
||||
|
||||
#include "streamexecutor/DeviceMemory.h"
|
||||
#include "streamexecutor/Error.h"
|
||||
#include "streamexecutor/Kernel.h"
|
||||
#include "streamexecutor/LaunchDimensions.h"
|
||||
#include "streamexecutor/PackedKernelArgumentArray.h"
|
||||
#include "streamexecutor/PlatformDevice.h"
|
||||
#include "streamexecutor/Utils/Error.h"
|
||||
|
||||
#include "llvm/ADT/Optional.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
|
|
|
@ -3,12 +3,11 @@ macro(add_se_library name)
|
|||
set_target_properties(${name} PROPERTIES FOLDER "streamexecutor libraries")
|
||||
endmacro(add_se_library)
|
||||
|
||||
add_subdirectory(Utils)
|
||||
|
||||
add_se_library(
|
||||
streamexecutor
|
||||
Device.cpp
|
||||
DeviceMemory.cpp
|
||||
Error.cpp
|
||||
Kernel.cpp
|
||||
KernelSpec.cpp
|
||||
PackedKernelArgumentArray.cpp
|
||||
|
@ -16,9 +15,6 @@ add_se_library(
|
|||
PlatformDevice.cpp
|
||||
PlatformManager.cpp
|
||||
Stream.cpp
|
||||
|
||||
LINK_LIBS
|
||||
utils
|
||||
)
|
||||
|
||||
install(TARGETS streamexecutor DESTINATION lib)
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
///
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "streamexecutor/Utils/Error.h"
|
||||
#include "streamexecutor/Error.h"
|
||||
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
add_se_library(
|
||||
utils
|
||||
Error.cpp)
|
Loading…
Reference in New Issue