{
bset.print(O);
return O;
-};
+}
///
#include "llvm/ADT/iterator"
#include <stack>
#include <set>
+#include <vector>
namespace llvm {
#define LLVM_ADT_VECTOREXTRAS_H
#include <cstdarg>
+#include <vector>
namespace llvm {
/// CallsThrough - Indirect calls are made through the specified function
/// pointer.
- CallsThrough,
+ CallsThrough
};
};
//
enum MarkIncompleteFlags {
MarkFormalArgs = 1, IgnoreFormalArgs = 0,
- IgnoreGlobals = 2, MarkGlobalsIncomplete = 0,
+ IgnoreGlobals = 2, MarkGlobalsIncomplete = 0
};
void markIncompleteNodes(unsigned Flags);
// graph entirely. This is only appropriate to use when inlining graphs.
//
enum RemoveDeadNodesFlags {
- RemoveUnreachableGlobals = 1, KeepUnreachableGlobals = 0,
+ RemoveUnreachableGlobals = 1, KeepUnreachableGlobals = 0
};
void removeDeadNodes(unsigned Flags);
DontCloneCallNodes = 1 << 1, CloneCallNodes = 0,
DontCloneAuxCallNodes = 1 << 2, CloneAuxCallNodes = 0,
StripModRefBits = 1 << 3, KeepModRefBits = 0,
- StripIncompleteBit = 1 << 4, KeepIncompleteBit = 0,
+ StripIncompleteBit = 1 << 4, KeepIncompleteBit = 0
};
void updateFromGlobalGraph();
DEAD = 1 << 8, // This node is dead and should not be pointed to
//#endif
- Composition = AllocaNode | HeapNode | GlobalNode | UnknownNode,
+ Composition = AllocaNode | HeapNode | GlobalNode | UnknownNode
};
/// NodeType - A union of the above bits. "Shadow" nodes do not add any flags
/// a pointer.
///
bool isPointerType(const Type *Ty);
-};
+}
//===----------------------------------------------------------------------===//
/// DSNodeHandle - Implement a "handle" to a data structure node that takes care
X.add((llvm::Value*)0, 0); // for -print-alias-sets
}
} ForceAnalysisPassLinking;
-};
+}
#endif
CompressedBytecodeFlag = 32, ///< Member is compressed bytecode
HasPathFlag = 64, ///< Member has a full or partial path
HasLongFilenameFlag = 128, ///< Member uses the long filename syntax
- StringTableFlag = 256, ///< Member is an ar(1) format string table
+ StringTableFlag = 256 ///< Member is an ar(1) format string table
};
/// @}
// tables for a function, allowing the indices used within the function to
// be as small as possible. This often allows the instructions to be
// encoded more efficiently.
- CompactionTable = 0x33,
+ CompactionTable = 0x33
};
/// In LLVM 1.3 format, the identifier and the size of the block are
// Target - This is the start of the target-specific calling conventions,
// e.g. fastcall and thiscall on X86.
- FirstTargetCC = 64,
+ FirstTargetCC = 64
};
} // End CallingConv namespace
SHF_LINK_ORDER = 1 << 7, // Preserve order after combining
SHF_OS_NONCONFORMING = 1 << 8, // nonstandard OS support required
SHF_GROUP = 1 << 9, // Section is a member of a group
- SHF_TLS = 1 << 10,// Section holds thread-local data
+ SHF_TLS = 1 << 10 // Section holds thread-local data
};
ELFSection(const std::string &name)
USE = 1,
DEF = 2,
STORE = 3,
- NUM = 4,
+ NUM = 4
};
};
LOFLAG32 = 0x08, // operand is %lo32(value_or_immedVal)
HIFLAG64 = 0x10, // operand is %hi64(value_or_immedVal)
LOFLAG64 = 0x20, // operand is %lo64(value_or_immedVal)
- PCRELATIVE = 0x40, // Operand is relative to PC, not a global address
+ PCRELATIVE = 0x40 // Operand is relative to PC, not a global address
};
public:
MO_FrameIndex, // Abstract Stack Frame Index
MO_ConstantPoolIndex, // Address of indexed Constant in Constant Pool
MO_ExternalSymbol, // Name of external global symbol
- MO_GlobalAddress, // Address of a global value
+ MO_GlobalAddress // Address of a global value
};
private:
noScheduling, // No scheduling, emit breath first sequence.
simpleScheduling, // Two pass, min. critical path, max. utilization.
simpleNoItinScheduling, // Same as above exact using generic latency.
- listSchedulingBURR, // Bottom up reg reduction list scheduling.
+ listSchedulingBURR // Bottom up reg reduction list scheduling.
};
DEBUG_LABEL,
// BUILTIN_OP_END - This must be the last enum value in this list.
- BUILTIN_OP_END,
+ BUILTIN_OP_END
};
//===--------------------------------------------------------------------===//
SETNE, // 1 X 1 1 0 True if not equal
SETTRUE2, // 1 X 1 1 1 Always true (always folded)
- SETCC_INVALID, // Marker value.
+ SETCC_INVALID // Marker value.
};
/// isSignedIntSetCC - Return true if this is a setcc instruction that
v4f32 = 21, // 4 x f32
v2f64 = 22, // 2 x f64
- LAST_VALUETYPE, // This always remains at the end of the list.
+ LAST_VALUETYPE // This always remains at the end of the list.
};
static inline bool isInteger(ValueType VT) {
/// to the specified ValueType. For integer types, this returns an unsigned
/// type. Note that this will abort for types that cannot be represented.
const Type *getTypeForValueType(ValueType VT);
-};
+}
} // End llvm namespace
enum ControlFlags {
Verbose = 1, ///< Print to std::cerr what steps the linker is taking
QuietWarnings = 2, ///< Don't print errors and warnings to std::cerr.
- QuietErrors = 4, ///< Indicate that this link is for a native executable
+ QuietErrors = 4 ///< Indicate that this link is for a native executable
};
/// @}
#ifndef LLVM_PASS_ANALYSIS_SUPPORT_H
#define LLVM_PASS_ANALYSIS_SUPPORT_H
+#include <vector>
+
namespace llvm {
// No need to include Pass.h, we are being included by it!
READ_ACCESS = 0x0001, ///< Map the file for reading
WRITE_ACCESS = 0x0002, ///< Map the file for write access
EXEC_ACCESS = 0x0004, ///< Map the file for execution access
- SHARED_MAPPING = 0x0008, ///< Map the file shared with other processes
+ SHARED_MAPPING = 0x0008 ///< Map the file shared with other processes
};
/// @}
/// @name Constructors
UnknownFileType = 0, ///< Unrecognized file
BytecodeFileType = 1, ///< Uncompressed bytecode file
CompressedBytecodeFileType = 2, ///< Compressed bytecode file
- ArchiveFileType = 3, ///< ar style archive file
+ ArchiveFileType = 3 ///< ar style archive file
};
/// This utility function allows any memory block to be examined in order
NANOSECONDS_PER_MICROSECOND = 1000, ///< One Thousand
NANOSECONDS_PER_MILLISECOND = 1000000,///< One Million
NANOSECONDS_PER_POSIX_TICK = 100, ///< Posix tick is 100 Hz (10ms)
- NANOSECONDS_PER_WIN32_TICK = 100, ///< Win32 tick is 100 Hz (10ms)
+ NANOSECONDS_PER_WIN32_TICK = 100 ///< Win32 tick is 100 Hz (10ms)
};
/// @}
/// namespace. This must be the same for all targets, which means that each
/// target is limited to 1024 registers.
///
- FirstVirtualRegister = 1024,
+ FirstVirtualRegister = 1024
};
/// isPhysicalRegister - Return true if the specified register number is in
Legal, // The target natively supports this operation.
Promote, // This operation should be executed in a larger type.
Expand, // Try to expand this to other ops, otherwise use a libcall.
- Custom, // Use the LowerOperation hook to implement custom lowering.
+ Custom // Use the LowerOperation hook to implement custom lowering.
};
enum OutOfRangeShiftAmount {
Undefined, // Oversized shift amounts are undefined (default).
Mask, // Shift amounts are auto masked (anded) to value size.
- Extend, // Oversized shift pulls in zeros or sign bits.
+ Extend // Oversized shift pulls in zeros or sign bits.
};
enum SetCCResultValue {
UndefinedSetCCResult, // SetCC returns a garbage/unknown extend.
ZeroOrOneSetCCResult, // SetCC returns a zero extended result.
- ZeroOrNegativeOneSetCCResult, // SetCC returns a sign extended result.
+ ZeroOrNegativeOneSetCCResult // SetCC returns a sign extended result.
};
enum SchedPreference {
SchedulingForLatency, // Scheduling for shortest total latency.
- SchedulingForRegPressure, // Scheduling for lowest register pressure.
+ SchedulingForRegPressure // Scheduling for lowest register pressure.
};
TargetLowering(TargetMachine &TM);
}
} ForcePassLinking;
-};
+}
#endif
/// inserted by the profiler.
virtual bool isProfiling(Value* v) = 0;
};
-};
+}