mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
Merge System into Support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120298 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9363f739cd
commit
1f6efa3996
@ -276,7 +276,7 @@ endif( MSVC )
|
||||
include_directories( ${LLVM_BINARY_DIR}/include ${LLVM_MAIN_INCLUDE_DIR})
|
||||
|
||||
if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
|
||||
SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-include llvm/System/Solaris.h")
|
||||
SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-include llvm/Support/Solaris.h")
|
||||
endif( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
|
||||
|
||||
include(AddLLVM)
|
||||
@ -292,9 +292,8 @@ if( MINGW )
|
||||
endif()
|
||||
|
||||
add_subdirectory(lib/Support)
|
||||
add_subdirectory(lib/System)
|
||||
|
||||
# Everything else depends on Support and System:
|
||||
# Everything else depends on Support:
|
||||
set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} ${LLVM_LIBS} )
|
||||
|
||||
set(LLVM_TABLEGEN "tblgen" CACHE
|
||||
@ -346,7 +345,7 @@ foreach(t ${LLVM_TARGETS_TO_BUILD})
|
||||
set( td ${LLVM_MAIN_SRC_DIR}/lib/Target/${t} )
|
||||
file(GLOB asmp_file "${td}/*AsmPrinter.cpp")
|
||||
if( asmp_file )
|
||||
set(LLVM_ENUM_ASM_PRINTERS
|
||||
set(LLVM_ENUM_ASM_PRINTERS
|
||||
"${LLVM_ENUM_ASM_PRINTERS}LLVM_ASM_PRINTER(${t})\n")
|
||||
endif()
|
||||
if( EXISTS ${td}/InstPrinter/CMakeLists.txt )
|
||||
@ -354,7 +353,7 @@ foreach(t ${LLVM_TARGETS_TO_BUILD})
|
||||
endif()
|
||||
if( EXISTS ${td}/AsmParser/CMakeLists.txt )
|
||||
add_subdirectory(lib/Target/${t}/AsmParser)
|
||||
set(LLVM_ENUM_ASM_PARSERS
|
||||
set(LLVM_ENUM_ASM_PARSERS
|
||||
"${LLVM_ENUM_ASM_PARSERS}LLVM_ASM_PARSER(${t})\n")
|
||||
endif()
|
||||
if( EXISTS ${td}/Disassembler/CMakeLists.txt )
|
||||
|
10
Makefile
10
Makefile
@ -10,7 +10,7 @@
|
||||
LEVEL := .
|
||||
|
||||
# Top-Level LLVM Build Stages:
|
||||
# 1. Build lib/System and lib/Support, which are used by utils (tblgen).
|
||||
# 1. Build lib/Support, which is used by utils (tblgen).
|
||||
# 2. Build utils, which is used by VMCore.
|
||||
# 3. Build VMCore, which builds the Intrinsics.inc file used by libs.
|
||||
# 4. Build libs, which are needed by llvm-config.
|
||||
@ -27,10 +27,10 @@ LEVEL := .
|
||||
ifneq ($(findstring llvmCore, $(RC_ProjectName)),llvmCore) # Normal build (not "Apple-style").
|
||||
|
||||
ifeq ($(BUILD_DIRS_ONLY),1)
|
||||
DIRS := lib/System lib/Support utils
|
||||
DIRS := lib/Support utils
|
||||
OPTIONAL_DIRS :=
|
||||
else
|
||||
DIRS := lib/System lib/Support utils lib/VMCore lib tools/llvm-shlib \
|
||||
DIRS := lib/Support utils lib/VMCore lib tools/llvm-shlib \
|
||||
tools/llvm-config tools runtime docs unittests
|
||||
OPTIONAL_DIRS := projects bindings
|
||||
endif
|
||||
@ -159,7 +159,7 @@ dist-hook::
|
||||
$(Echo) Eliminating files constructed by configure
|
||||
$(Verb) $(RM) -f \
|
||||
$(TopDistDir)/include/llvm/Config/config.h \
|
||||
$(TopDistDir)/include/llvm/System/DataTypes.h
|
||||
$(TopDistDir)/include/llvm/Support/DataTypes.h
|
||||
|
||||
clang-only: all
|
||||
tools-only: all
|
||||
@ -178,7 +178,7 @@ FilesToConfig := \
|
||||
include/llvm/Config/AsmPrinters.def \
|
||||
include/llvm/Config/AsmParsers.def \
|
||||
include/llvm/Config/Disassemblers.def \
|
||||
include/llvm/System/DataTypes.h \
|
||||
include/llvm/Support/DataTypes.h \
|
||||
tools/llvmc/src/Base.td
|
||||
FilesToConfigPATH := $(addprefix $(LLVM_OBJ_ROOT)/,$(FilesToConfig))
|
||||
|
||||
|
@ -634,11 +634,11 @@ else
|
||||
endif
|
||||
|
||||
ifeq ($(HOST_OS),SunOS)
|
||||
CPP.BaseFlags += -include llvm/System/Solaris.h
|
||||
CPP.BaseFlags += -include llvm/Support/Solaris.h
|
||||
endif
|
||||
|
||||
ifeq ($(HOST_OS),AuroraUX)
|
||||
CPP.BaseFlags += -include llvm/System/Solaris.h
|
||||
CPP.BaseFlags += -include llvm/Support/Solaris.h
|
||||
endif # !HOST_OS - AuroraUX.
|
||||
|
||||
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
|
||||
|
@ -319,7 +319,7 @@ AC_SUBST(LINKALL,$llvm_cv_link_all_option)
|
||||
AC_SUBST(NOLINKALL,$llvm_cv_no_link_all_option)
|
||||
|
||||
dnl Set the "LLVM_ON_*" variables based on llvm_cv_platform_type
|
||||
dnl This is used by lib/System to determine the basic kind of implementation
|
||||
dnl This is used by lib/Support to determine the basic kind of implementation
|
||||
dnl to use.
|
||||
case $llvm_cv_platform_type in
|
||||
Unix)
|
||||
@ -1625,7 +1625,7 @@ AC_CONFIG_FILES([include/llvm/Config/Targets.def])
|
||||
AC_CONFIG_FILES([include/llvm/Config/AsmPrinters.def])
|
||||
AC_CONFIG_FILES([include/llvm/Config/AsmParsers.def])
|
||||
AC_CONFIG_FILES([include/llvm/Config/Disassemblers.def])
|
||||
AC_CONFIG_HEADERS([include/llvm/System/DataTypes.h])
|
||||
AC_CONFIG_HEADERS([include/llvm/Support/DataTypes.h])
|
||||
|
||||
dnl Configure the makefile's configuration data
|
||||
AC_CONFIG_FILES([Makefile.config])
|
||||
|
@ -277,7 +277,7 @@ configure_file(
|
||||
)
|
||||
|
||||
configure_file(
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/System/DataTypes.h.cmake
|
||||
${LLVM_BINARY_DIR}/include/llvm/System/DataTypes.h
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/DataTypes.h.cmake
|
||||
${LLVM_BINARY_DIR}/include/llvm/Support/DataTypes.h
|
||||
)
|
||||
|
||||
|
4
configure
vendored
4
configure
vendored
@ -20920,7 +20920,7 @@ ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
|
||||
|
||||
ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
|
||||
|
||||
ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
|
||||
ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files Makefile.config"
|
||||
@ -21546,7 +21546,7 @@ do
|
||||
"include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
|
||||
"include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
|
||||
"include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
|
||||
"include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
|
||||
"include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
|
||||
"Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
|
||||
"llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
|
||||
"tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef LLVM_C_ENHANCEDDISASSEMBLY_H
|
||||
#define LLVM_C_ENHANCEDDISASSEMBLY_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -15,7 +15,7 @@
|
||||
#ifndef LLVM_ADT_EQUIVALENCECLASSES_H
|
||||
#define LLVM_ADT_EQUIVALENCECLASSES_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cassert>
|
||||
#include <set>
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#ifndef LLVM_ADT_FOLDINGSET_H
|
||||
#define LLVM_ADT_FOLDINGSET_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include "llvm/Support/Allocator.h"
|
||||
#include "llvm/ADT/FoldingSet.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include "llvm/Support/Allocator.h"
|
||||
#include "llvm/ADT/FoldingSet.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cassert>
|
||||
#include <functional>
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <iterator>
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/PointerLikeTypeTraits.h"
|
||||
|
||||
namespace llvm {
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#include "llvm/ADT/ilist.h"
|
||||
#include "llvm/ADT/ilist_node.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <cassert>
|
||||
|
@ -26,7 +26,7 @@
|
||||
#ifndef LLVM_ADT_STATISTIC_H
|
||||
#define LLVM_ADT_STATISTIC_H
|
||||
|
||||
#include "llvm/System/Atomic.h"
|
||||
#include "llvm/Support/Atomic.h"
|
||||
|
||||
namespace llvm {
|
||||
class raw_ostream;
|
||||
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_ADT_STRINGEXTRAS_H
|
||||
#define LLVM_ADT_STRINGEXTRAS_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/ADT/APFloat.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include <cctype>
|
||||
|
@ -11,7 +11,7 @@
|
||||
#define LLVM_ADT_TWINE_H
|
||||
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/Support/ValueHandle.h"
|
||||
#include "llvm/Support/type_traits.h"
|
||||
#include "llvm/System/Mutex.h"
|
||||
#include "llvm/Support/Mutex.h"
|
||||
|
||||
#include <iterator>
|
||||
|
||||
|
@ -57,7 +57,7 @@
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/Support/CallSite.h"
|
||||
#include "llvm/Support/ValueHandle.h"
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
#include "llvm/Support/IncludeFile.h"
|
||||
#include <map>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -15,7 +15,7 @@
|
||||
#ifndef LLVM_ANALYSIS_DIBUILDER_H
|
||||
#define LLVM_ANALYSIS_DIBUILDER_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
|
||||
namespace llvm {
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Instructions.h"
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/ValueHandle.h"
|
||||
#include "llvm/Support/Allocator.h"
|
||||
#include "llvm/Support/ConstantRange.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
#ifndef LLVM_ANALYSIS_VALUETRACKING_H
|
||||
#define LLVM_ANALYSIS_VALUETRACKING_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <string>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "llvm/SymbolTableListTraits.h"
|
||||
#include "llvm/ADT/ilist.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@ -58,9 +58,9 @@ private:
|
||||
/// tables. The type of a BasicBlock is "Type::LabelTy" because the basic block
|
||||
/// represents a label to which a branch can jump.
|
||||
///
|
||||
/// A well formed basic block is formed of a list of non-terminating
|
||||
/// instructions followed by a single TerminatorInst instruction.
|
||||
/// TerminatorInst's may not occur in the middle of basic blocks, and must
|
||||
/// A well formed basic block is formed of a list of non-terminating
|
||||
/// instructions followed by a single TerminatorInst instruction.
|
||||
/// TerminatorInst's may not occur in the middle of basic blocks, and must
|
||||
/// terminate the blocks. The BasicBlock class allows malformed basic blocks to
|
||||
/// occur because it may be useful in the intermediate stage of constructing or
|
||||
/// modifying a program. However, the verifier will ensure that basic blocks
|
||||
@ -90,7 +90,7 @@ private:
|
||||
public:
|
||||
/// getContext - Get the context in which this basic block lives.
|
||||
LLVMContext &getContext() const;
|
||||
|
||||
|
||||
/// Instruction iterators...
|
||||
typedef InstListType::iterator iterator;
|
||||
typedef InstListType::const_iterator const_iterator;
|
||||
@ -98,7 +98,7 @@ public:
|
||||
/// Create - Creates a new BasicBlock. If the Parent parameter is specified,
|
||||
/// the basic block is automatically inserted at either the end of the
|
||||
/// function (if InsertBefore is 0), or before the specified basic block.
|
||||
static BasicBlock *Create(LLVMContext &Context, const Twine &Name = "",
|
||||
static BasicBlock *Create(LLVMContext &Context, const Twine &Name = "",
|
||||
Function *Parent = 0,BasicBlock *InsertBefore = 0) {
|
||||
return new BasicBlock(Context, Name, Parent, InsertBefore);
|
||||
}
|
||||
@ -114,15 +114,15 @@ public:
|
||||
/// and BlockAddress's).
|
||||
User *use_back() { return cast<User>(*use_begin());}
|
||||
const User *use_back() const { return cast<User>(*use_begin());}
|
||||
|
||||
|
||||
/// getTerminator() - If this is a well formed basic block, then this returns
|
||||
/// a pointer to the terminator instruction. If it is not, then you get a
|
||||
/// null pointer back.
|
||||
///
|
||||
TerminatorInst *getTerminator();
|
||||
const TerminatorInst *getTerminator() const;
|
||||
|
||||
/// Returns a pointer to the first instructon in this block that is not a
|
||||
|
||||
/// Returns a pointer to the first instructon in this block that is not a
|
||||
/// PHINode instruction. When adding instruction to the beginning of the
|
||||
/// basic block, they should be added before the returned value, not before
|
||||
/// the first instruction, which might be PHI.
|
||||
@ -137,7 +137,7 @@ public:
|
||||
const Instruction* getFirstNonPHIOrDbg() const {
|
||||
return const_cast<BasicBlock*>(this)->getFirstNonPHIOrDbg();
|
||||
}
|
||||
|
||||
|
||||
/// removeFromParent - This method unlinks 'this' from the containing
|
||||
/// function, but does not delete it.
|
||||
///
|
||||
@ -147,15 +147,15 @@ public:
|
||||
/// and deletes it.
|
||||
///
|
||||
void eraseFromParent();
|
||||
|
||||
|
||||
/// moveBefore - Unlink this basic block from its current function and
|
||||
/// insert it into the function that MovePos lives in, right before MovePos.
|
||||
void moveBefore(BasicBlock *MovePos);
|
||||
|
||||
|
||||
/// moveAfter - Unlink this basic block from its current function and
|
||||
/// insert it into the function that MovePos lives in, right after MovePos.
|
||||
void moveAfter(BasicBlock *MovePos);
|
||||
|
||||
|
||||
|
||||
/// getSinglePredecessor - If this basic block has a single predecessor block,
|
||||
/// return the block, otherwise return a null pointer.
|
||||
@ -166,8 +166,8 @@ public:
|
||||
|
||||
/// getUniquePredecessor - If this basic block has a unique predecessor block,
|
||||
/// return the block, otherwise return a null pointer.
|
||||
/// Note that unique predecessor doesn't mean single edge, there can be
|
||||
/// multiple edges from the unique predecessor to this block (for example
|
||||
/// Note that unique predecessor doesn't mean single edge, there can be
|
||||
/// multiple edges from the unique predecessor to this block (for example
|
||||
/// a switch statement with multiple cases having the same destination).
|
||||
BasicBlock *getUniquePredecessor();
|
||||
const BasicBlock *getUniquePredecessor() const {
|
||||
@ -247,7 +247,7 @@ public:
|
||||
/// hasAddressTaken - returns true if there are any uses of this basic block
|
||||
/// other than direct branches, switches, etc. to it.
|
||||
bool hasAddressTaken() const { return getSubclassDataFromValue() != 0; }
|
||||
|
||||
|
||||
private:
|
||||
/// AdjustBlockAddressRefCount - BasicBlock stores the number of BlockAddress
|
||||
/// objects using it. This is almost always 0, sometimes one, possibly but
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#include "llvm/ADT/ilist.h"
|
||||
#include "llvm/ADT/ilist_node.h"
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#define LLVM_BITCODE_BITCODES_H
|
||||
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -17,7 +17,7 @@
|
||||
#define LLVM_CODEGEN_ASMPRINTER_H
|
||||
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
class BlockAddress;
|
||||
|
@ -16,7 +16,7 @@
|
||||
#define LLVM_CODEGEN_BINARYOBJECT_H
|
||||
|
||||
#include "llvm/CodeGen/MachineRelocation.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
@ -18,7 +18,7 @@
|
||||
#define LLVM_CODEGEN_JITCODEEMITTER_H
|
||||
|
||||
#include <string>
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
#include "llvm/CodeGen/MachineCodeEmitter.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
#ifndef LLVM_CODEGEN_MACHO_RELOCATION_H
|
||||
#define LLVM_CODEGEN_MACHO_RELOCATION_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#ifndef LLVM_CODEGEN_MACHINECODEEMITTER_H
|
||||
#define LLVM_CODEGEN_MACHINECODEEMITTER_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/DebugLoc.h"
|
||||
|
||||
namespace llvm {
|
||||
|
@ -17,7 +17,7 @@
|
||||
#ifndef EE_MACHINE_CODE_INFO_H
|
||||
#define EE_MACHINE_CODE_INFO_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
//#include "llvm/ADT/IndexedMap.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cassert>
|
||||
#include <vector>
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#ifndef LLVM_CODEGEN_MACHINEMEMOPERAND_H
|
||||
#define LLVM_CODEGEN_MACHINEMEMOPERAND_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
#include "llvm/Support/Dwarf.h"
|
||||
#include "llvm/Support/DebugLoc.h"
|
||||
#include "llvm/Support/ValueHandle.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/PointerIntPair.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_CODEGEN_MACHINEOPERAND_H
|
||||
#define LLVM_CODEGEN_MACHINEOPERAND_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_CODEGEN_MACHINERELOCATION_H
|
||||
#define LLVM_CODEGEN_MACHINERELOCATION_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -17,7 +17,7 @@
|
||||
#define LLVM_CODEGEN_EXACTHAZARDRECOGNIZER_H
|
||||
|
||||
#include "llvm/CodeGen/ScheduleHazardRecognizer.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
|
@ -12,7 +12,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
#include "llvm/Support/IncludeFile.h"
|
||||
#include "llvm/CodeGen/LiveInterval.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "llvm/CodeGen/ValueTypes.h"
|
||||
#include "llvm/CodeGen/MachineMemOperand.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/DebugLoc.h"
|
||||
#include <cassert>
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
|
||||
namespace llvm {
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
#include "llvm/ADT/StringSet.h"
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#include "llvm/ADT/IntrusiveRefCntPtr.h"
|
||||
#include "llvm/ADT/StringSet.h"
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
@ -19,7 +19,7 @@
|
||||
#define LLVM_DERIVED_TYPES_H
|
||||
|
||||
#include "llvm/Type.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/ADT/ValueMap.h"
|
||||
#include "llvm/Support/ValueHandle.h"
|
||||
#include "llvm/System/Mutex.h"
|
||||
#include "llvm/Support/Mutex.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
|
||||
namespace llvm {
|
||||
|
@ -16,7 +16,7 @@
|
||||
#define GENERIC_VALUE_H
|
||||
|
||||
#include "llvm/ADT/APInt.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
#ifndef LLVM_EXECUTION_ENGINE_JIT_EVENTLISTENER_H
|
||||
#define LLVM_EXECUTION_ENGINE_JIT_EVENTLISTENER_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/DebugLoc.h"
|
||||
|
||||
#include <vector>
|
||||
|
@ -10,7 +10,7 @@
|
||||
#ifndef LLVM_EXECUTION_ENGINE_JIT_MEMMANAGER_H
|
||||
#define LLVM_EXECUTION_ENGINE_JIT_MEMMANAGER_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <string>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -22,15 +22,15 @@
|
||||
#include "llvm/IntrinsicInst.h"
|
||||
#include "llvm/InlineAsm.h"
|
||||
#include "llvm/Analysis/Verifier.h"
|
||||
#include "llvm/System/Alarm.h"
|
||||
#include "llvm/System/DynamicLibrary.h"
|
||||
#include "llvm/System/Memory.h"
|
||||
#include "llvm/System/Mutex.h"
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/System/Process.h"
|
||||
#include "llvm/System/Program.h"
|
||||
#include "llvm/System/Signals.h"
|
||||
#include "llvm/System/TimeValue.h"
|
||||
#include "llvm/Support/Alarm.h"
|
||||
#include "llvm/Support/DynamicLibrary.h"
|
||||
#include "llvm/Support/Memory.h"
|
||||
#include "llvm/Support/Mutex.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
#include "llvm/Support/Process.h"
|
||||
#include "llvm/Support/Program.h"
|
||||
#include "llvm/Support/Signals.h"
|
||||
#include "llvm/Support/TimeValue.h"
|
||||
#include "llvm/Support/Dwarf.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
#include <cstdlib>
|
||||
|
@ -9,7 +9,7 @@
|
||||
#ifndef EDINSTINFO_H
|
||||
#define EDINSTINFO_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/MC/MCFixup.h"
|
||||
#include "llvm/MC/MCInst.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <vector> // FIXME: Shouldn't be needed.
|
||||
|
||||
namespace llvm {
|
||||
|
@ -9,7 +9,7 @@
|
||||
#ifndef MCDISASSEMBLER_H
|
||||
#define MCDISASSEMBLER_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#define LLVM_MC_MCEXPR_H
|
||||
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
class MCAsmInfo;
|
||||
|
@ -10,7 +10,7 @@
|
||||
#ifndef LLVM_MC_MCFIXUP_H
|
||||
#define LLVM_MC_MCFIXUP_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
class raw_ostream;
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include "llvm/ADT/Triple.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/MC/MCParser/MCAsmLexer.h"
|
||||
#include "llvm/MC/MCAsmInfo.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#define LLVM_MC_MCASMLEXER_H
|
||||
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/SMLoc.h"
|
||||
|
||||
namespace llvm {
|
||||
|
@ -10,7 +10,7 @@
|
||||
#ifndef LLVM_MC_MCASMPARSER_H
|
||||
#define LLVM_MC_MCASMPARSER_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
class AsmToken;
|
||||
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_MC_MCSTREAMER_H
|
||||
#define LLVM_MC_MCSTREAMER_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/MC/MCDirectives.h"
|
||||
|
||||
namespace llvm {
|
||||
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_MC_MCVALUE_H
|
||||
#define LLVM_MC_MCVALUE_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/MC/MCSymbol.h"
|
||||
#include <cassert>
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "llvm/GlobalAlias.h"
|
||||
#include "llvm/Metadata.h"
|
||||
#include "llvm/ADT/OwningPtr.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -22,7 +22,7 @@
|
||||
#ifndef LLVM_OBJECT_MACHOFORMAT_H
|
||||
#define LLVM_OBJECT_MACHOFORMAT_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace object {
|
||||
|
@ -15,7 +15,7 @@
|
||||
#define LLVM_OBJECT_OBJECT_FILE_H
|
||||
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "Pass.h"
|
||||
#include "llvm/PassRegistry.h"
|
||||
#include "llvm/InitializePasses.h"
|
||||
#include "llvm/System/Atomic.h"
|
||||
#include "llvm/Support/Atomic.h"
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include "llvm/Support/AlignOf.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_SYSTEM_ATOMIC_H
|
||||
#define LLVM_SYSTEM_ATOMIC_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace sys {
|
@ -23,7 +23,7 @@
|
||||
#ifndef LLVM_SUPPORT_WIN_COFF_H
|
||||
#define LLVM_SUPPORT_WIN_COFF_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cstring>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -33,7 +33,7 @@
|
||||
#define LLVM_SUPPORT_CONSTANT_RANGE_H
|
||||
|
||||
#include "llvm/ADT/APInt.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*===-- include/System/DataTypes.h - Define fixed size types -----*- C -*-===*\
|
||||
/*===-- include/Support/DataTypes.h - Define fixed size types -----*- C -*-===*\
|
||||
|* *|
|
||||
|* The LLVM Compiler Infrastructure *|
|
||||
|* *|
|
||||
@ -43,12 +43,12 @@
|
||||
happening when system headers or C++ STL headers include stdint.h before we
|
||||
define it here, we define it on the g++ command line (in Makefile.rules). */
|
||||
#if !defined(__STDC_LIMIT_MACROS)
|
||||
# error "Must #define __STDC_LIMIT_MACROS before #including System/DataTypes.h"
|
||||
# error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
|
||||
#endif
|
||||
|
||||
#if !defined(__STDC_CONSTANT_MACROS)
|
||||
# error "Must #define __STDC_CONSTANT_MACROS before " \
|
||||
"#including System/DataTypes.h"
|
||||
"#including Support/DataTypes.h"
|
||||
#endif
|
||||
|
||||
/* Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. */
|
||||
@ -65,7 +65,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef _AIX
|
||||
#include "llvm/System/AIXDataTypesFix.h"
|
||||
#include "llvm/Support/AIXDataTypesFix.h"
|
||||
#endif
|
||||
|
||||
/* Handle incorrect definition of uint64_t as u_int64_t */
|
@ -15,7 +15,7 @@
|
||||
#ifndef LLVM_SYSTEM_DISASSEMBLER_H
|
||||
#define LLVM_SYSTEM_DISASSEMBLER_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <string>
|
||||
|
||||
namespace llvm {
|
@ -20,7 +20,7 @@
|
||||
#ifndef LLVM_SUPPORT_ELF_H
|
||||
#define LLVM_SUPPORT_ELF_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cstring>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -15,8 +15,8 @@
|
||||
#define LLVM_SUPPORT_ENDIAN_H
|
||||
|
||||
#include "llvm/Config/config.h"
|
||||
#include "llvm/System/Host.h"
|
||||
#include "llvm/System/SwapByteOrder.h"
|
||||
#include "llvm/Support/Host.h"
|
||||
#include "llvm/Support/SwapByteOrder.h"
|
||||
#include "llvm/Support/type_traits.h"
|
||||
|
||||
namespace llvm {
|
||||
|
@ -15,7 +15,7 @@
|
||||
#ifndef LLVM_SUPPORT_FILEUTILITIES_H
|
||||
#define LLVM_SUPPORT_FILEUTILITIES_H
|
||||
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "llvm/Support/DOTGraphTraits.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/ADT/GraphTraits.h"
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
#include <vector>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -16,14 +16,14 @@
|
||||
#define LLVM_SYSTEM_INCLUDEFILE_H
|
||||
|
||||
/// This macro is the public interface that IncludeFile.h exports. This gives
|
||||
/// us the option to implement the "link the definition" capability in any
|
||||
/// us the option to implement the "link the definition" capability in any
|
||||
/// manner that we choose. All header files that depend on a specific .cpp
|
||||
/// file being linked at run time should use this macro instead of the
|
||||
/// IncludeFile class directly.
|
||||
///
|
||||
/// IncludeFile class directly.
|
||||
///
|
||||
/// For example, foo.h would use:<br/>
|
||||
/// <tt>FORCE_DEFINING_FILE_TO_BE_LINKED(foo)</tt><br/>
|
||||
///
|
||||
///
|
||||
/// And, foo.cp would use:<br/>
|
||||
/// <tt>DEFINING_FILE_FOR(foo)</tt><br/>
|
||||
#ifdef __GNUC__
|
||||
@ -34,14 +34,14 @@
|
||||
extern const char name ## LinkVar; \
|
||||
__attribute__((used)) static const char *const name ## LinkObj = \
|
||||
&name ## LinkVar; \
|
||||
}
|
||||
}
|
||||
#else
|
||||
// Otherwise use a constructor call.
|
||||
#define FORCE_DEFINING_FILE_TO_BE_LINKED(name) \
|
||||
namespace llvm { \
|
||||
extern const char name ## LinkVar; \
|
||||
static const IncludeFile name ## LinkObj ( &name ## LinkVar ); \
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/// This macro is the counterpart to FORCE_DEFINING_FILE_TO_BE_LINKED. It should
|
||||
@ -53,9 +53,9 @@
|
||||
namespace llvm {
|
||||
|
||||
/// This class is used in the implementation of FORCE_DEFINING_FILE_TO_BE_LINKED
|
||||
/// macro to make sure that the implementation of a header file is included
|
||||
/// into a tool that uses the header. This is solely
|
||||
/// to overcome problems linking .a files and not getting the implementation
|
||||
/// macro to make sure that the implementation of a header file is included
|
||||
/// into a tool that uses the header. This is solely
|
||||
/// to overcome problems linking .a files and not getting the implementation
|
||||
/// of compilation units we need. This is commonly an issue with the various
|
||||
/// Passes but also occurs elsewhere in LLVM. We like to use .a files because
|
||||
/// they link faster and provide the smallest executables. However, sometimes
|
@ -1,6 +1,6 @@
|
||||
LLVM System Interface Library
|
||||
-------------------------------------------------------------------------------
|
||||
The LLVM System Interface Library is licensed under the Illinois Open Source
|
||||
The LLVM System Interface Library is licensed under the Illinois Open Source
|
||||
License and has the following additional copyright:
|
||||
|
||||
Copyright (C) 2004 eXtensible Systems, Inc.
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_SUPPORT_MACHO_H
|
||||
#define LLVM_SUPPORT_MACHO_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
// NOTE: The enums in this file are intentially named to be different than those
|
||||
// in the headers in /usr/include/mach (on darwin systems) to avoid conflicts
|
||||
|
@ -14,8 +14,8 @@
|
||||
#ifndef LLVM_SUPPORT_MANAGED_STATIC_H
|
||||
#define LLVM_SUPPORT_MANAGED_STATIC_H
|
||||
|
||||
#include "llvm/System/Atomic.h"
|
||||
#include "llvm/System/Threading.h"
|
||||
#include "llvm/Support/Atomic.h"
|
||||
#include "llvm/Support/Threading.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_SUPPORT_MATHEXTRAS_H
|
||||
#define LLVM_SUPPORT_MATHEXTRAS_H
|
||||
|
||||
#include "llvm/System/SwapByteOrder.h"
|
||||
#include "llvm/Support/SwapByteOrder.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_SYSTEM_MEMORY_H
|
||||
#define LLVM_SYSTEM_MEMORY_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <string>
|
||||
|
||||
namespace llvm {
|
||||
@ -51,7 +51,7 @@ namespace sys {
|
||||
///
|
||||
/// On success, this returns a non-null memory block, otherwise it returns
|
||||
/// a null memory block and fills in *ErrMsg.
|
||||
///
|
||||
///
|
||||
/// @brief Allocate Read/Write/Execute memory.
|
||||
static MemoryBlock AllocateRWX(size_t NumBytes,
|
||||
const MemoryBlock *NearBlock,
|
||||
@ -65,8 +65,8 @@ namespace sys {
|
||||
/// in *ErrMsg.
|
||||
/// @brief Release Read/Write/Execute memory.
|
||||
static bool ReleaseRWX(MemoryBlock &block, std::string *ErrMsg = 0);
|
||||
|
||||
|
||||
|
||||
|
||||
/// InvalidateInstructionCache - Before the JIT can run a block of code
|
||||
/// that has been emitted it must invalidate the instruction cache on some
|
||||
/// platforms.
|
||||
@ -82,11 +82,11 @@ namespace sys {
|
||||
/// boundaries, and the JIT internal allocations are not page aligned.
|
||||
static bool setWritable (MemoryBlock &M, std::string *ErrMsg = 0);
|
||||
|
||||
/// setRangeExecutable - Mark the page containing a range of addresses
|
||||
/// setRangeExecutable - Mark the page containing a range of addresses
|
||||
/// as executable.
|
||||
static bool setRangeExecutable(const void *Addr, size_t Size);
|
||||
|
||||
/// setRangeWritable - Mark the page containing a range of addresses
|
||||
/// setRangeWritable - Mark the page containing a range of addresses
|
||||
/// as writable.
|
||||
static bool setRangeWritable(const void *Addr, size_t Size);
|
||||
};
|
@ -15,7 +15,7 @@
|
||||
#define LLVM_SUPPORT_MEMORYBUFFER_H
|
||||
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <string>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -10,7 +10,7 @@
|
||||
#ifndef MEMORYOBJECT_H
|
||||
#define MEMORYOBJECT_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_SYSTEM_MUTEX_H
|
||||
#define LLVM_SYSTEM_MUTEX_H
|
||||
|
||||
#include "llvm/System/Threading.h"
|
||||
#include "llvm/Support/Threading.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace llvm
|
||||
@ -79,9 +79,9 @@ namespace llvm
|
||||
void operator=(const MutexImpl &);
|
||||
/// @}
|
||||
};
|
||||
|
||||
|
||||
/// SmartMutex - A mutex with a compile time constant parameter that
|
||||
|
||||
|
||||
/// SmartMutex - A mutex with a compile time constant parameter that
|
||||
/// indicates whether this mutex should become a no-op when we're not
|
||||
/// running in multithreaded mode.
|
||||
template<bool mt_only>
|
||||
@ -91,7 +91,7 @@ namespace llvm
|
||||
public:
|
||||
explicit SmartMutex(bool rec = true) :
|
||||
MutexImpl(rec), acquired(0), recursive(rec) { }
|
||||
|
||||
|
||||
bool acquire() {
|
||||
if (!mt_only || llvm_is_multithreaded()) {
|
||||
return MutexImpl::acquire();
|
||||
@ -124,29 +124,29 @@ namespace llvm
|
||||
return MutexImpl::tryacquire();
|
||||
else return true;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
SmartMutex(const SmartMutex<mt_only> & original);
|
||||
void operator=(const SmartMutex<mt_only> &);
|
||||
};
|
||||
|
||||
|
||||
/// Mutex - A standard, always enforced mutex.
|
||||
typedef SmartMutex<false> Mutex;
|
||||
|
||||
|
||||
template<bool mt_only>
|
||||
class SmartScopedLock {
|
||||
SmartMutex<mt_only>& mtx;
|
||||
|
||||
|
||||
public:
|
||||
SmartScopedLock(SmartMutex<mt_only>& m) : mtx(m) {
|
||||
mtx.acquire();
|
||||
}
|
||||
|
||||
|
||||
~SmartScopedLock() {
|
||||
mtx.release();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
typedef SmartScopedLock<false> ScopedLock;
|
||||
}
|
||||
}
|
@ -15,7 +15,7 @@
|
||||
#ifndef LLVM_SUPPORT_MUTEXGUARD_H
|
||||
#define LLVM_SUPPORT_MUTEXGUARD_H
|
||||
|
||||
#include "llvm/System/Mutex.h"
|
||||
#include "llvm/Support/Mutex.h"
|
||||
|
||||
namespace llvm {
|
||||
/// Instances of this class acquire a given Mutex Lock when constructed and
|
||||
|
@ -15,7 +15,7 @@
|
||||
#define LLVM_SYSTEM_PATH_H
|
||||
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/System/TimeValue.h"
|
||||
#include "llvm/Support/TimeValue.h"
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <vector>
|
@ -25,8 +25,8 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/System/system_error.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/system_error.h"
|
||||
#include <ctime>
|
||||
#include <iterator>
|
||||
#include <string>
|
@ -15,7 +15,7 @@
|
||||
#ifndef LLVM_SUPPORT_POINTERLIKETYPETRAITS_H
|
||||
#define LLVM_SUPPORT_POINTERLIKETYPETRAITS_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_SYSTEM_PROCESS_H
|
||||
#define LLVM_SYSTEM_PROCESS_H
|
||||
|
||||
#include "llvm/System/TimeValue.h"
|
||||
#include "llvm/Support/TimeValue.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace sys {
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_SYSTEM_PROGRAM_H
|
||||
#define LLVM_SYSTEM_PROGRAM_H
|
||||
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace sys {
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_SYSTEM_RWMUTEX_H
|
||||
#define LLVM_SYSTEM_RWMUTEX_H
|
||||
|
||||
#include "llvm/System/Threading.h"
|
||||
#include "llvm/Support/Threading.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace llvm
|
||||
@ -43,7 +43,7 @@ namespace llvm
|
||||
|
||||
/// Attempts to unconditionally acquire the lock in reader mode. If the
|
||||
/// lock is held by a writer, this method will wait until it can acquire
|
||||
/// the lock.
|
||||
/// the lock.
|
||||
/// @returns false if any kind of error occurs, true otherwise.
|
||||
/// @brief Unconditionally acquire the lock in reader mode.
|
||||
bool reader_acquire();
|
||||
@ -55,7 +55,7 @@ namespace llvm
|
||||
|
||||
/// Attempts to unconditionally acquire the lock in reader mode. If the
|
||||
/// lock is held by any readers, this method will wait until it can
|
||||
/// acquire the lock.
|
||||
/// acquire the lock.
|
||||
/// @returns false if any kind of error occurs, true otherwise.
|
||||
/// @brief Unconditionally acquire the lock in writer mode.
|
||||
bool writer_acquire();
|
||||
@ -79,8 +79,8 @@ namespace llvm
|
||||
void operator=(const RWMutexImpl &);
|
||||
/// @}
|
||||
};
|
||||
|
||||
/// SmartMutex - An R/W mutex with a compile time constant parameter that
|
||||
|
||||
/// SmartMutex - An R/W mutex with a compile time constant parameter that
|
||||
/// indicates whether this mutex should become a no-op when we're not
|
||||
/// running in multithreaded mode.
|
||||
template<bool mt_only>
|
||||
@ -88,80 +88,80 @@ namespace llvm
|
||||
unsigned readers, writers;
|
||||
public:
|
||||
explicit SmartRWMutex() : RWMutexImpl(), readers(0), writers(0) { }
|
||||
|
||||
|
||||
bool reader_acquire() {
|
||||
if (!mt_only || llvm_is_multithreaded())
|
||||
return RWMutexImpl::reader_acquire();
|
||||
|
||||
|
||||
// Single-threaded debugging code. This would be racy in multithreaded
|
||||
// mode, but provides not sanity checks in single threaded mode.
|
||||
++readers;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool reader_release() {
|
||||
if (!mt_only || llvm_is_multithreaded())
|
||||
return RWMutexImpl::reader_release();
|
||||
|
||||
|
||||
// Single-threaded debugging code. This would be racy in multithreaded
|
||||
// mode, but provides not sanity checks in single threaded mode.
|
||||
assert(readers > 0 && "Reader lock not acquired before release!");
|
||||
--readers;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool writer_acquire() {
|
||||
if (!mt_only || llvm_is_multithreaded())
|
||||
return RWMutexImpl::writer_acquire();
|
||||
|
||||
|
||||
// Single-threaded debugging code. This would be racy in multithreaded
|
||||
// mode, but provides not sanity checks in single threaded mode.
|
||||
assert(writers == 0 && "Writer lock already acquired!");
|
||||
++writers;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool writer_release() {
|
||||
if (!mt_only || llvm_is_multithreaded())
|
||||
return RWMutexImpl::writer_release();
|
||||
|
||||
|
||||
// Single-threaded debugging code. This would be racy in multithreaded
|
||||
// mode, but provides not sanity checks in single threaded mode.
|
||||
assert(writers == 1 && "Writer lock not acquired before release!");
|
||||
--writers;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
SmartRWMutex(const SmartRWMutex<mt_only> & original);
|
||||
void operator=(const SmartRWMutex<mt_only> &);
|
||||
};
|
||||
typedef SmartRWMutex<false> RWMutex;
|
||||
|
||||
|
||||
/// ScopedReader - RAII acquisition of a reader lock
|
||||
template<bool mt_only>
|
||||
struct SmartScopedReader {
|
||||
SmartRWMutex<mt_only>& mutex;
|
||||
|
||||
|
||||
explicit SmartScopedReader(SmartRWMutex<mt_only>& m) : mutex(m) {
|
||||
mutex.reader_acquire();
|
||||
}
|
||||
|
||||
|
||||
~SmartScopedReader() {
|
||||
mutex.reader_release();
|
||||
}
|
||||
};
|
||||
typedef SmartScopedReader<false> ScopedReader;
|
||||
|
||||
|
||||
/// ScopedWriter - RAII acquisition of a writer lock
|
||||
template<bool mt_only>
|
||||
struct SmartScopedWriter {
|
||||
SmartRWMutex<mt_only>& mutex;
|
||||
|
||||
|
||||
explicit SmartScopedWriter(SmartRWMutex<mt_only>& m) : mutex(m) {
|
||||
mutex.writer_acquire();
|
||||
}
|
||||
|
||||
|
||||
~SmartScopedWriter() {
|
||||
mutex.writer_release();
|
||||
}
|
@ -15,7 +15,7 @@
|
||||
#ifndef LLVM_SYSTEM_SIGNALS_H
|
||||
#define LLVM_SYSTEM_SIGNALS_H
|
||||
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace sys {
|
@ -15,7 +15,7 @@
|
||||
#ifndef LLVM_SYSTEM_SWAP_BYTE_ORDER_H
|
||||
#define LLVM_SYSTEM_SWAP_BYTE_ORDER_H
|
||||
|
||||
#include "llvm/System/DataTypes.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cstddef>
|
||||
#include <limits>
|
||||
|
||||
@ -87,7 +87,7 @@ inline signed long SwapByteOrder( signed long C) { return SwapByteOrder_64(
|
||||
#else
|
||||
#error "Unknown long size!"
|
||||
#endif
|
||||
|
||||
|
||||
inline unsigned long long SwapByteOrder(unsigned long long C) {
|
||||
return SwapByteOrder_64(C);
|
||||
}
|
@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_SYSTEM_THREAD_LOCAL_H
|
||||
#define LLVM_SYSTEM_THREAD_LOCAL_H
|
||||
|
||||
#include "llvm/System/Threading.h"
|
||||
#include "llvm/Support/Threading.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace llvm {
|
||||
@ -30,21 +30,21 @@ namespace llvm {
|
||||
const void* getInstance();
|
||||
void removeInstance();
|
||||
};
|
||||
|
||||
|
||||
/// ThreadLocal - A class used to abstract thread-local storage. It holds,
|
||||
/// for each thread, a pointer a single object of type T.
|
||||
template<class T>
|
||||
class ThreadLocal : public ThreadLocalImpl {
|
||||
public:
|
||||
ThreadLocal() : ThreadLocalImpl() { }
|
||||
|
||||
|
||||
/// get - Fetches a pointer to the object associated with the current
|
||||
/// thread. If no object has yet been associated, it returns NULL;
|
||||
T* get() { return static_cast<T*>(getInstance()); }
|
||||
|
||||
|
||||
// set - Associates a pointer to an object with the current thread.
|
||||
void set(T* d) { setInstance(d); }
|
||||
|
||||
|
||||
// erase - Removes the pointer associated with the current thread.
|
||||
void erase() { removeInstance(); }
|
||||
};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user