2015-06-23 01:48:35 +02:00
|
|
|
//===-------- llvm/IR/Value.def - File that describes Values ---v-*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains descriptions of the various LLVM values. This is
|
|
|
|
// used as a central place for enumerating the different values.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// NOTE: NO INCLUDE GUARD DESIRED!
|
|
|
|
|
|
|
|
// Provide definitions of macros so that users of this file do not have to
|
|
|
|
// define everything to use it...
|
|
|
|
//
|
|
|
|
#if !(defined HANDLE_GLOBAL_VALUE || defined HANDLE_CONSTANT || \
|
|
|
|
defined HANDLE_INSTRUCTION || defined HANDLE_INLINE_ASM_VALUE || \
|
|
|
|
defined HANDLE_METADATA_VALUE || defined HANDLE_VALUE || \
|
|
|
|
defined HANDLE_CONSTANT_MARKER)
|
|
|
|
#error "Missing macro definition of HANDLE_VALUE*"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HANDLE_GLOBAL_VALUE
|
|
|
|
#define HANDLE_GLOBAL_VALUE(ValueName) HANDLE_CONSTANT(ValueName)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HANDLE_CONSTANT
|
|
|
|
#define HANDLE_CONSTANT(ValueName) HANDLE_VALUE(ValueName)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HANDLE_INSTRUCTION
|
|
|
|
#define HANDLE_INSTRUCTION(ValueName) HANDLE_VALUE(ValueName)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HANDLE_INLINE_ASM_VALUE
|
|
|
|
#define HANDLE_INLINE_ASM_VALUE(ValueName) HANDLE_VALUE(ValueName)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HANDLE_METADATA_VALUE
|
|
|
|
#define HANDLE_METADATA_VALUE(ValueName) HANDLE_VALUE(ValueName)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HANDLE_VALUE
|
|
|
|
#define HANDLE_VALUE(ValueName)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HANDLE_CONSTANT_MARKER
|
|
|
|
#define HANDLE_CONSTANT_MARKER(MarkerName, ValueName)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
HANDLE_VALUE(Argument)
|
|
|
|
HANDLE_VALUE(BasicBlock)
|
2016-02-02 23:46:49 +01:00
|
|
|
HANDLE_VALUE(MemoryUse)
|
|
|
|
HANDLE_VALUE(MemoryDef)
|
|
|
|
HANDLE_VALUE(MemoryPhi)
|
2015-06-23 01:48:35 +02:00
|
|
|
|
|
|
|
HANDLE_GLOBAL_VALUE(Function)
|
|
|
|
HANDLE_GLOBAL_VALUE(GlobalAlias)
|
2016-04-07 14:32:19 +02:00
|
|
|
HANDLE_GLOBAL_VALUE(GlobalIFunc)
|
2015-06-23 01:48:35 +02:00
|
|
|
HANDLE_GLOBAL_VALUE(GlobalVariable)
|
|
|
|
HANDLE_CONSTANT(BlockAddress)
|
|
|
|
HANDLE_CONSTANT(ConstantExpr)
|
2016-04-05 23:10:45 +02:00
|
|
|
|
|
|
|
// ConstantAggregate.
|
2016-02-21 03:39:49 +01:00
|
|
|
HANDLE_CONSTANT(ConstantArray)
|
|
|
|
HANDLE_CONSTANT(ConstantStruct)
|
|
|
|
HANDLE_CONSTANT(ConstantVector)
|
|
|
|
|
|
|
|
// ConstantData.
|
|
|
|
HANDLE_CONSTANT(UndefValue)
|
2015-06-23 01:48:35 +02:00
|
|
|
HANDLE_CONSTANT(ConstantAggregateZero)
|
|
|
|
HANDLE_CONSTANT(ConstantDataArray)
|
|
|
|
HANDLE_CONSTANT(ConstantDataVector)
|
|
|
|
HANDLE_CONSTANT(ConstantInt)
|
|
|
|
HANDLE_CONSTANT(ConstantFP)
|
|
|
|
HANDLE_CONSTANT(ConstantPointerNull)
|
2015-11-11 22:57:16 +01:00
|
|
|
HANDLE_CONSTANT(ConstantTokenNone)
|
2015-06-23 01:48:35 +02:00
|
|
|
|
|
|
|
HANDLE_METADATA_VALUE(MetadataAsValue)
|
|
|
|
HANDLE_INLINE_ASM_VALUE(InlineAsm)
|
|
|
|
|
|
|
|
HANDLE_INSTRUCTION(Instruction)
|
|
|
|
// Enum values starting at InstructionVal are used for Instructions;
|
|
|
|
// don't add new values here!
|
|
|
|
|
|
|
|
HANDLE_CONSTANT_MARKER(ConstantFirstVal, Function)
|
2015-11-11 22:57:16 +01:00
|
|
|
HANDLE_CONSTANT_MARKER(ConstantLastVal, ConstantTokenNone)
|
2016-02-21 03:39:49 +01:00
|
|
|
HANDLE_CONSTANT_MARKER(ConstantDataFirstVal, UndefValue)
|
|
|
|
HANDLE_CONSTANT_MARKER(ConstantDataLastVal, ConstantTokenNone)
|
2016-04-05 23:10:45 +02:00
|
|
|
HANDLE_CONSTANT_MARKER(ConstantAggregateFirstVal, ConstantArray)
|
|
|
|
HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
|
2015-06-23 01:48:35 +02:00
|
|
|
|
|
|
|
#undef HANDLE_GLOBAL_VALUE
|
|
|
|
#undef HANDLE_CONSTANT
|
|
|
|
#undef HANDLE_INSTRUCTION
|
|
|
|
#undef HANDLE_METADATA_VALUE
|
|
|
|
#undef HANDLE_INLINE_ASM_VALUE
|
|
|
|
#undef HANDLE_VALUE
|
|
|
|
#undef HANDLE_CONSTANT_MARKER
|