Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions externals/abseil/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set(ABSL_PROPAGATE_CXX_STD ON)
set(ABSL_USE_SYSTEM_INCLUDES ON CACHE BOOL "Use system includes for Abseil" FORCE)

FetchContent_Declare(
cpp-abseil
Expand Down
6 changes: 3 additions & 3 deletions lib/mpi_interceptor/InterceptorFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef TEST_MPI_INTERCEPTOR_INTERCEPTORFUNCTIONS_H_
#define TEST_MPI_INTERCEPTOR_INTERCEPTORFUNCTIONS_H_
#ifndef TYPEART_MPI_INTERCEPTOR_INTERCEPTORFUNCTIONS_H
#define TYPEART_MPI_INTERCEPTOR_INTERCEPTORFUNCTIONS_H

#include "RuntimeExport.h"
#include "RuntimeInterface.h"
Expand Down Expand Up @@ -156,4 +156,4 @@ TYPEART_NO_EXPORT void ta_exit() {
mcounter.null_count);
}

#endif /* TEST_MPI_INTERCEPTOR_INTERCEPTORFUNCTIONS_H_ */
#endif // TYPEART_MPI_INTERCEPTOR_INTERCEPTORFUNCTIONS_H
6 changes: 3 additions & 3 deletions lib/passes/analysis/MemOpVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LIB_MEMOPVISITOR_H_
#define LIB_MEMOPVISITOR_H_
#ifndef TYPEART_MEMOPVISITOR_H
#define TYPEART_MEMOPVISITOR_H

#include "MemOpData.h"
#include "configuration/Configuration.h"
Expand Down Expand Up @@ -57,4 +57,4 @@ struct MemOpVisitor : public llvm::InstVisitor<MemOpVisitor> {

} // namespace typeart::analysis

#endif /* LIB_MEMOPVISITOR_H_ */
#endif // TYPEART_MEMOPVISITOR_H
6 changes: 3 additions & 3 deletions lib/passes/compat/CallSite.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

// In Clang 11 CallSite.h was removed, this is a small wrapper reimplementation

#ifndef COMPAT_LLVM_IR_CALLSITE_H
#define COMPAT_LLVM_IR_CALLSITE_H
#ifndef TYPEART_CALLSITE_H
#define TYPEART_CALLSITE_H

#include "llvm/IR/Instruction.h"

Expand Down Expand Up @@ -86,4 +86,4 @@ class CallSite {
};
} // namespace llvm

#endif
#endif // TYPEART_CALLSITE_H
6 changes: 3 additions & 3 deletions lib/passes/configuration/OptionsUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LIB_PASSES_CONFIGURATION_OPTIONSUTIL
#define LIB_PASSES_CONFIGURATION_OPTIONSUTIL
#ifndef TYPEART_CONFIGURATION_OPTIONS_UTIL_H
#define TYPEART_CONFIGURATION_OPTIONS_UTIL_H

#include "analysis/MemInstFinder.h"
#include "instrumentation/TypeIDProvider.h"
Expand Down Expand Up @@ -80,4 +80,4 @@ ClType make_opt(llvm::StringRef cl_value) {
}

} // namespace typeart::config::util
#endif /* LIB_PASSES_CONFIGURATION_OPTIONSUTIL */
#endif // TYPEART_CONFIGURATION_OPTIONS_UTIL_H
6 changes: 3 additions & 3 deletions lib/passes/configuration/TypeARTOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LIB_PASSES_CONFIGURATION_TYPEARTOPTIONS
#define LIB_PASSES_CONFIGURATION_TYPEARTOPTIONS
#ifndef TYPEART_CONFIGURATION_OPTIONS_H
#define TYPEART_CONFIGURATION_OPTIONS_H

#include "analysis/MemInstFinder.h"
#include "configuration/Configuration.h"
Expand Down Expand Up @@ -82,4 +82,4 @@ llvm::raw_ostream& operator<<(llvm::raw_ostream& out_s, const TypeARTConfigOptio

} // namespace typeart::config

#endif /* LIB_PASSES_CONFIGURATION_TYPEARTOPTIONS */
#endif // TYPEART_CONFIGURATION_OPTIONS_H
6 changes: 3 additions & 3 deletions lib/passes/filter/CGInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef _LIB_TYPEART_CGINTERFACE_H
#define _LIB_TYPEART_CGINTERFACE_H
#ifndef TYPEART_CGINTERFACE_H
#define TYPEART_CGINTERFACE_H

#include "llvm/Support/JSON.h"

Expand Down Expand Up @@ -80,4 +80,4 @@ class JSONCG final : public CGInterface {
};

} // namespace typeart::filter
#endif
#endif // TYPEART_CGINTERFACE_H
6 changes: 3 additions & 3 deletions lib/passes/instrumentation/CallBackFunctionInserter.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LIB_PASSES_INSTRUMENTATION_CALLBACKFUNCTIONINSERTER
#define LIB_PASSES_INSTRUMENTATION_CALLBACKFUNCTIONINSERTER
#ifndef TYPEART_CALLBACKFUNCTIONINSERTER_H
#define TYPEART_CALLBACKFUNCTIONINSERTER_H

#include "instrumentation/TypeARTFunctions.h"

Expand Down Expand Up @@ -51,4 +51,4 @@ std::unique_ptr<InstrumentationInserter> make_callback_inserter(const config::Co

} // namespace typeart

#endif /* LIB_PASSES_INSTRUMENTATION_CALLBACKFUNCTIONINSERTER */
#endif // TYPEART_CALLBACKFUNCTIONINSERTER_H
6 changes: 3 additions & 3 deletions lib/passes/instrumentation/InstrumentationHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LIB_INSTRUMENTATIONHELPER_H_
#define LIB_INSTRUMENTATIONHELPER_H_
#ifndef TYPEART_INSTRUMENTATIONHELPER_H
#define TYPEART_INSTRUMENTATIONHELPER_H

#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
Expand Down Expand Up @@ -66,4 +66,4 @@ class InstrumentationHelper {

} // namespace typeart

#endif /* LIB_INSTRUMENTATIONHELPER_H_ */
#endif // TYPEART_INSTRUMENTATIONHELPER_H
6 changes: 3 additions & 3 deletions lib/passes/instrumentation/MemOpInstrumentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LIB_PASSES_INSTRUMENTATION_MEMOPINSTRUMENTATION
#define LIB_PASSES_INSTRUMENTATION_MEMOPINSTRUMENTATION
#ifndef TYPEART_MEMOPINSTRUMENTATION_H
#define TYPEART_MEMOPINSTRUMENTATION_H

#include "Instrumentation.h"
#include "configuration/Configuration.h"
Expand Down Expand Up @@ -45,4 +45,4 @@ class MemOpInstrumentation final : public MemoryInstrument {
};

} // namespace typeart
#endif /* LIB_PASSES_INSTRUMENTATION_MEMOPINSTRUMENTATION */
#endif // TYPEART_MEMOPINSTRUMENTATION_H
6 changes: 3 additions & 3 deletions lib/passes/instrumentation/TypeIDProvider.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LIB_PASSES_INSTRUMENTATION_MODULETYPEREGISTRY
#define LIB_PASSES_INSTRUMENTATION_MODULETYPEREGISTRY
#ifndef TYPEART_TYPEIDPROVIDER_H
#define TYPEART_TYPEIDPROVIDER_H

// #include "TypeARTFunctions.h"
// #include "instrumentation/TypeARTFunctions.h"
Expand Down Expand Up @@ -36,4 +36,4 @@ std::unique_ptr<TypeRegistry> get_type_id_handler(llvm::Module& m, const TypeDat

} // namespace typeart

#endif /* LIB_PASSES_INSTRUMENTATION_MODULETYPEREGISTRY */
#endif // TYPEART_TYPEIDPROVIDER_H
6 changes: 3 additions & 3 deletions lib/passes/support/ModuleDumper.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef MODULE_DUMPER_UTIL_H
#define MODULE_DUMPER_UTIL_H
#ifndef TYPEART_MODULEDUMPER_H
#define TYPEART_MODULEDUMPER_H

#include "llvm/IR/Module.h"

Expand All @@ -23,4 +23,4 @@ void dump_module(const llvm::Module& module, ModulePhase phase);

} // namespace typeart::util::module

#endif
#endif // TYPEART_MODULEDUMPER_H
6 changes: 3 additions & 3 deletions lib/passes/support/TypeUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LIB_UTIL_TYPE_H
#define LIB_UTIL_TYPE_H
#ifndef TYPEART_TYPE_UTIL_H
#define TYPEART_TYPE_UTIL_H

namespace llvm {
class DataLayout;
Expand Down Expand Up @@ -46,4 +46,4 @@ unsigned getPointerSizeInBytes(llvm::Type* ptrT, const llvm::DataLayout& dl);

} // namespace typeart::util::type

#endif
#endif // TYPEART_TYPE_UTIL_H
6 changes: 3 additions & 3 deletions lib/passes/support/Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LIB_UTIL_H_
#define LIB_UTIL_H_
#ifndef TYPEART_UTIL_H
#define TYPEART_UTIL_H

// #include "Logger.h"

Expand Down Expand Up @@ -228,4 +228,4 @@ void for_each_cdtor(llvm::StringRef name, llvm::Module& module, Matcher&& matchi

} // namespace typeart::util

#endif /* LIB_UTIL_H_ */
#endif // TYPEART_UTIL_H
6 changes: 3 additions & 3 deletions lib/passes/typegen/TypeGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LIB_PASSES_TYPEGEN_TYPEGENERATOR
#define LIB_PASSES_TYPEGEN_TYPEGENERATOR
#ifndef TYPEART_TYPEGENERATOR_H
#define TYPEART_TYPEGENERATOR_H

#include "analysis/MemOpData.h"
#include "typelib/TypeDatabase.h"
Expand Down Expand Up @@ -68,4 +68,4 @@ std::unique_ptr<TypeGenerator> make_typegen(std::string_view file, TypegenImplem

} // namespace typeart

#endif /* LIB_PASSES_TYPEGEN_TYPEGENERATOR */
#endif // TYPEART_TYPEGENERATOR_H
6 changes: 3 additions & 3 deletions lib/passes/typegen/ir/TypeManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LLVM_MUST_SUPPORT_TYPEMANAGER_H
#define LLVM_MUST_SUPPORT_TYPEMANAGER_H
#ifndef TYPEART_TYPEMANAGER_H
#define TYPEART_TYPEMANAGER_H

#include "typegen/TypeIDGenerator.h"

Expand Down Expand Up @@ -44,4 +44,4 @@ class TypeManager final : public types::TypeIDGenerator {

} // namespace typeart

#endif // LLVM_MUST_SUPPORT_TYPEMANAGER_H
#endif // TYPEART_TYPEMANAGER_H
6 changes: 3 additions & 3 deletions lib/runtime/GlobalTypeDefCallbacks.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LIB_RUNTIME_GLOBALTYPEDEFCALLBACKS
#define LIB_RUNTIME_GLOBALTYPEDEFCALLBACKS
#ifndef TYPEART_GLOBALTYPEDEFCALLBACKS_H
#define TYPEART_GLOBALTYPEDEFCALLBACKS_H

#include "RuntimeData.h"
#include "TypeInterface.h"
Expand Down Expand Up @@ -41,4 +41,4 @@ class GlobalTypeTranslator final {

} // namespace typeart

#endif /* LIB_RUNTIME_GLOBALTYPEDEFCALLBACKS */
#endif // TYPEART_GLOBALTYPEDEFCALLBACKS_H
6 changes: 3 additions & 3 deletions lib/runtime/Runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LIB_RUNTIME_RUNTIME
#define LIB_RUNTIME_RUNTIME
#ifndef TYPEART_RUNTIME_H
#define TYPEART_RUNTIME_H

#include "AccessCounter.h"
#include "AllocationTracking.h"
Expand Down Expand Up @@ -126,4 +126,4 @@ struct RTGuard final {

} // namespace typeart

#endif /* LIB_RUNTIME_RUNTIME */
#endif // TYPEART_RUNTIME_H
5 changes: 0 additions & 5 deletions lib/runtime/RuntimeData.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@
#ifdef TYPEART_PHMAP
#error TypeART-RT: Set ABSL and PHMAP, mutually exclusive.
#endif

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#pragma GCC diagnostic ignored "-Wshadow"
#include "absl/container/btree_map.h"
#include "absl/container/flat_hash_map.h"
#pragma GCC diagnostic pop
#endif

#ifdef TYPEART_PHMAP
Expand Down
6 changes: 3 additions & 3 deletions lib/support/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LIB_LOGGER_H_
#define LIB_LOGGER_H_
#ifndef TYPEART_LOGGER_H
#define TYPEART_LOGGER_H

#include "llvm/Support/raw_ostream.h"

Expand Down Expand Up @@ -67,4 +67,4 @@ inline void typeart_log(const std::string& msg) {
#define LOG_FATAL(MSG) OO_LOG_LEVEL_MSG(0, "[Fatal]", MSG)
#define LOG_MSG(MSG) llvm::errs() << MSG << "\n"; /* NOLINT */

#endif /* LIB_LOGGER_H_ */
#endif // TYPEART_LOGGER_H
6 changes: 3 additions & 3 deletions lib/typelib/TypeDB.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LLVM_MUST_SUPPORT_TYPECONFIG_H
#define LLVM_MUST_SUPPORT_TYPECONFIG_H
#ifndef TYPEART_TYPEDB_H
#define TYPEART_TYPEDB_H

#include "TypeDatabase.h"
#include "TypeInterface.h"
Expand Down Expand Up @@ -110,4 +110,4 @@ class TypeDB final : public TypeDatabase {

} // namespace typeart

#endif // LLVM_MUST_SUPPORT_TYPECONFIG_H
#endif // TYPEART_TYPEDB_H
6 changes: 3 additions & 3 deletions lib/typelib/TypeIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// SPDX-License-Identifier: BSD-3-Clause
//

#ifndef LLVM_MUST_SUPPORT_CONFIGIO_H
#define LLVM_MUST_SUPPORT_CONFIGIO_H
#ifndef TYPEART_TYPEIO_H
#define TYPEART_TYPEIO_H

#include "typelib/TypeDatabase.h"

Expand All @@ -30,4 +30,4 @@ namespace io {

} // namespace typeart

#endif // LLVM_MUST_SUPPORT_CONFIGIO_H
#endif // TYPEART_TYPEIO_H