[llvm-commits] CVS: llvm/include/llvm/CodeGen/FunctionLiveVarInfo.h InstrForest.h InstrScheduling.h InstrSelection.h InstrSelectionSupport.h LiveVariables.h MachineBasicBlock.h MachineCodeEmitter.h MachineCodeForInstruction.h MachineConstantPool.h MachineFrameInfo.h MachineFunction.h MachineFunctionInfo.h MachineFunctionPass.h MachineInstr.h MachineInstrAnnot.h MachineInstrBuilder.h Passes.h SSARegMap.h SchedGraphCommon.h SelectionDAG.h ValueSet.h ValueTypes.h
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 11 16:45:45 PST 2003
Changes in directory llvm/include/llvm/CodeGen:
FunctionLiveVarInfo.h updated: 1.31 -> 1.32
InstrForest.h updated: 1.31 -> 1.32
InstrScheduling.h updated: 1.13 -> 1.14
InstrSelection.h updated: 1.29 -> 1.30
InstrSelectionSupport.h updated: 1.23 -> 1.24
LiveVariables.h updated: 1.7 -> 1.8
MachineBasicBlock.h updated: 1.12 -> 1.13
MachineCodeEmitter.h updated: 1.15 -> 1.16
MachineCodeForInstruction.h updated: 1.11 -> 1.12
MachineConstantPool.h updated: 1.3 -> 1.4
MachineFrameInfo.h updated: 1.8 -> 1.9
MachineFunction.h updated: 1.28 -> 1.29
MachineFunctionInfo.h updated: 1.2 -> 1.3
MachineFunctionPass.h updated: 1.2 -> 1.3
MachineInstr.h updated: 1.114 -> 1.115
MachineInstrAnnot.h updated: 1.12 -> 1.13
MachineInstrBuilder.h updated: 1.15 -> 1.16
Passes.h updated: 1.8 -> 1.9
SSARegMap.h updated: 1.7 -> 1.8
SchedGraphCommon.h updated: 1.7 -> 1.8
SelectionDAG.h updated: 1.4 -> 1.5
ValueSet.h updated: 1.13 -> 1.14
ValueTypes.h updated: 1.4 -> 1.5
---
Log message:
Put all LLVM code into the llvm namespace, as per bug 109.
---
Diffs of the changes: (+109 -1)
Index: llvm/include/llvm/CodeGen/FunctionLiveVarInfo.h
diff -u llvm/include/llvm/CodeGen/FunctionLiveVarInfo.h:1.31 llvm/include/llvm/CodeGen/FunctionLiveVarInfo.h:1.32
--- llvm/include/llvm/CodeGen/FunctionLiveVarInfo.h:1.31 Mon Oct 20 15:55:13 2003
+++ llvm/include/llvm/CodeGen/FunctionLiveVarInfo.h Tue Nov 11 16:41:31 2003
@@ -39,6 +39,8 @@
#include "llvm/Pass.h"
#include "llvm/CodeGen/ValueSet.h"
+namespace llvm {
+
class BBLiveVar;
class MachineInstr;
@@ -103,5 +105,7 @@
const ValueSet &getLiveVarSetAfterMInst(const MachineInstr *MI,
const BasicBlock *BB = 0);
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/InstrForest.h
diff -u llvm/include/llvm/CodeGen/InstrForest.h:1.31 llvm/include/llvm/CodeGen/InstrForest.h:1.32
--- llvm/include/llvm/CodeGen/InstrForest.h:1.31 Mon Oct 20 15:19:22 2003
+++ llvm/include/llvm/CodeGen/InstrForest.h Tue Nov 11 16:41:31 2003
@@ -29,16 +29,24 @@
#include "llvm/Instruction.h"
#include "Support/hash_map"
+namespace llvm {
+
class Constant;
class Function;
class InstrTreeNode;
class InstrForest;
+} // End llvm namespace
+
+using namespace llvm;
+
//--------------------------------------------------------------------------
// OpLabel values for special-case nodes created for instruction selection.
// All op-labels not defined here are identical to the instruction
// opcode returned by Instruction::getOpcode()
//--------------------------------------------------------------------------
+//
+
const int InvalidOp = -1;
const int VRegListOp = 97;
@@ -103,6 +111,7 @@
extern int treecost (InstrTreeNode*, int, int);
extern void printMatches (InstrTreeNode*);
+namespace llvm {
//------------------------------------------------------------------------
// class InstrTreeNode
@@ -324,5 +333,7 @@
InstructionNode* buildTreeForInstruction(Instruction* instr);
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/InstrScheduling.h
diff -u llvm/include/llvm/CodeGen/InstrScheduling.h:1.13 llvm/include/llvm/CodeGen/InstrScheduling.h:1.14
--- llvm/include/llvm/CodeGen/InstrScheduling.h:1.13 Mon Oct 20 15:19:22 2003
+++ llvm/include/llvm/CodeGen/InstrScheduling.h Tue Nov 11 16:41:31 2003
@@ -15,6 +15,8 @@
#ifndef LLVM_CODEGEN_INSTR_SCHEDULING_H
#define LLVM_CODEGEN_INSTR_SCHEDULING_H
+namespace llvm {
+
class FunctionPass;
class TargetMachine;
@@ -29,5 +31,7 @@
//---------------------------------------------------------------------------
FunctionPass *createInstructionSchedulingWithSSAPass(const TargetMachine &TM);
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/InstrSelection.h
diff -u llvm/include/llvm/CodeGen/InstrSelection.h:1.29 llvm/include/llvm/CodeGen/InstrSelection.h:1.30
--- llvm/include/llvm/CodeGen/InstrSelection.h:1.29 Mon Oct 20 15:19:22 2003
+++ llvm/include/llvm/CodeGen/InstrSelection.h Tue Nov 11 16:41:31 2003
@@ -16,6 +16,8 @@
#include "llvm/Instruction.h"
+namespace llvm {
+
class Function;
class InstrForest;
class MachineInstr;
@@ -101,5 +103,7 @@
return isa<Instruction>(V) && classof(cast<Instruction>(V));
}
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/InstrSelectionSupport.h
diff -u llvm/include/llvm/CodeGen/InstrSelectionSupport.h:1.23 llvm/include/llvm/CodeGen/InstrSelectionSupport.h:1.24
--- llvm/include/llvm/CodeGen/InstrSelectionSupport.h:1.23 Mon Oct 20 15:19:22 2003
+++ llvm/include/llvm/CodeGen/InstrSelectionSupport.h Tue Nov 11 16:41:31 2003
@@ -17,6 +17,9 @@
#include "llvm/CodeGen/MachineInstr.h"
#include "Support/DataTypes.h"
+
+namespace llvm {
+
class InstructionNode;
class TargetMachine;
class Instruction;
@@ -43,5 +46,7 @@
bool canUseImmed,
unsigned& getMachineRegNum,
int64_t& getImmedValue);
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/LiveVariables.h
diff -u llvm/include/llvm/CodeGen/LiveVariables.h:1.7 llvm/include/llvm/CodeGen/LiveVariables.h:1.8
--- llvm/include/llvm/CodeGen/LiveVariables.h:1.7 Mon Oct 20 15:19:22 2003
+++ llvm/include/llvm/CodeGen/LiveVariables.h Tue Nov 11 16:41:31 2003
@@ -32,6 +32,8 @@
#include "llvm/CodeGen/MachineFunctionPass.h"
#include <map>
+namespace llvm {
+
class MRegisterInfo;
class LiveVariables : public MachineFunctionPass {
@@ -206,5 +208,7 @@
void HandlePhysRegUse(unsigned Reg, MachineInstr *MI);
void HandlePhysRegDef(unsigned Reg, MachineInstr *MI);
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/MachineBasicBlock.h
diff -u llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.12 llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.13
--- llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.12 Mon Oct 20 15:19:22 2003
+++ llvm/include/llvm/CodeGen/MachineBasicBlock.h Tue Nov 11 16:41:31 2003
@@ -15,6 +15,9 @@
#define LLVM_CODEGEN_MACHINEBASICBLOCK_H
#include <vector>
+
+namespace llvm {
+
class BasicBlock;
class MachineInstr;
template <typename T> struct ilist_traits;
@@ -81,5 +84,6 @@
void setNext(MachineBasicBlock *N) { Next = N; }
};
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/MachineCodeEmitter.h
diff -u llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.15 llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.16
--- llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.15 Mon Oct 20 15:19:22 2003
+++ llvm/include/llvm/CodeGen/MachineCodeEmitter.h Tue Nov 11 16:41:31 2003
@@ -19,6 +19,9 @@
#include <string>
#include "Support/DataTypes.h"
+
+namespace llvm {
+
class MachineFunction;
class MachineBasicBlock;
class MachineConstantPool;
@@ -104,5 +107,7 @@
///
static MachineCodeEmitter *createFilePrinterEmitter(MachineCodeEmitter&);
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/MachineCodeForInstruction.h
diff -u llvm/include/llvm/CodeGen/MachineCodeForInstruction.h:1.11 llvm/include/llvm/CodeGen/MachineCodeForInstruction.h:1.12
--- llvm/include/llvm/CodeGen/MachineCodeForInstruction.h:1.11 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/MachineCodeForInstruction.h Tue Nov 11 16:41:31 2003
@@ -28,6 +28,8 @@
#include "Support/Annotation.h"
#include <vector>
+namespace llvm {
+
class MachineInstr;
class Instruction;
class Value;
@@ -95,5 +97,7 @@
void setCallArgsDescriptor(CallArgsDescriptor* desc) { callArgsDesc = desc; }
CallArgsDescriptor* getCallArgsDescriptor() const { return callArgsDesc; }
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/MachineConstantPool.h
diff -u llvm/include/llvm/CodeGen/MachineConstantPool.h:1.3 llvm/include/llvm/CodeGen/MachineConstantPool.h:1.4
--- llvm/include/llvm/CodeGen/MachineConstantPool.h:1.3 Thu Oct 23 11:29:12 2003
+++ llvm/include/llvm/CodeGen/MachineConstantPool.h Tue Nov 11 16:41:31 2003
@@ -23,6 +23,9 @@
#define LLVM_CODEGEN_MACHINECONSTANTPOOL_H
#include <vector>
+
+namespace llvm {
+
class Constant;
class MachineConstantPool {
@@ -53,5 +56,7 @@
/// dump - Call print(std::cerr) to be called from the debugger.
void dump() const;
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/MachineFrameInfo.h
diff -u llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.8 llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.9
--- llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.8 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/MachineFrameInfo.h Tue Nov 11 16:41:31 2003
@@ -38,12 +38,19 @@
#ifndef LLVM_CODEGEN_MACHINEFRAMEINFO_H
#define LLVM_CODEGEN_MACHINEFRAMEINFO_H
+namespace llvm {
+
class TargetData;
class TargetRegisterClass;
class Type;
class MachineFunction;
+
+}
+
#include <vector>
+namespace llvm {
+
class MachineFrameInfo {
// StackObject - Represent a single object allocated on the stack.
@@ -219,5 +226,7 @@
/// dump - Call print(MF, std::cerr) to be called from the debugger.
void dump(const MachineFunction &MF) const;
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/MachineFunction.h
diff -u llvm/include/llvm/CodeGen/MachineFunction.h:1.28 llvm/include/llvm/CodeGen/MachineFunction.h:1.29
--- llvm/include/llvm/CodeGen/MachineFunction.h:1.28 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/MachineFunction.h Tue Nov 11 16:41:31 2003
@@ -22,6 +22,8 @@
#include "Support/Annotation.h"
#include "Support/ilist"
+namespace llvm {
+
class Function;
class TargetMachine;
class FunctionPass;
@@ -140,5 +142,7 @@
const MachineBasicBlock & back() const { return BasicBlocks.back(); }
MachineBasicBlock & back() { return BasicBlocks.back(); }
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/MachineFunctionInfo.h
diff -u llvm/include/llvm/CodeGen/MachineFunctionInfo.h:1.2 llvm/include/llvm/CodeGen/MachineFunctionInfo.h:1.3
--- llvm/include/llvm/CodeGen/MachineFunctionInfo.h:1.2 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/MachineFunctionInfo.h Tue Nov 11 16:41:31 2003
@@ -17,6 +17,9 @@
#include "Support/HashExtras.h"
#include "Support/hash_set"
+
+namespace llvm {
+
class MachineFunction;
class Value;
class Constant;
@@ -111,5 +114,7 @@
}
int allocateOptionalArg(const Type* type);
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/MachineFunctionPass.h
diff -u llvm/include/llvm/CodeGen/MachineFunctionPass.h:1.2 llvm/include/llvm/CodeGen/MachineFunctionPass.h:1.3
--- llvm/include/llvm/CodeGen/MachineFunctionPass.h:1.2 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/MachineFunctionPass.h Tue Nov 11 16:41:31 2003
@@ -22,6 +22,8 @@
#include "llvm/Pass.h"
#include "llvm/CodeGen/MachineFunction.h"
+namespace llvm {
+
struct MachineFunctionPass : public FunctionPass {
/// runOnMachineFunction - This method must be overloaded to perform the
@@ -36,5 +38,7 @@
return runOnMachineFunction(MachineFunction::get(&F));
}
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.114 llvm/include/llvm/CodeGen/MachineInstr.h:1.115
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.114 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/MachineInstr.h Tue Nov 11 16:41:31 2003
@@ -20,6 +20,8 @@
#include "Support/Annotation.h"
#include "Support/iterator"
+namespace llvm {
+
class Value;
class Function;
class MachineBasicBlock;
@@ -714,5 +716,7 @@
std::ostream& operator<<(std::ostream &OS, const MachineInstr &MI);
std::ostream& operator<<(std::ostream &OS, const MachineOperand &MO);
void PrintMachineInstructions(const Function *F);
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/MachineInstrAnnot.h
diff -u llvm/include/llvm/CodeGen/MachineInstrAnnot.h:1.12 llvm/include/llvm/CodeGen/MachineInstrAnnot.h:1.13
--- llvm/include/llvm/CodeGen/MachineInstrAnnot.h:1.12 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/MachineInstrAnnot.h Tue Nov 11 16:41:31 2003
@@ -17,6 +17,8 @@
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/Target/TargetRegInfo.h"
+namespace llvm {
+
class Value;
class TmpInstruction;
class CallInst;
@@ -88,5 +90,6 @@
static CallArgsDescriptor *get(const MachineInstr* MI);
};
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/MachineInstrBuilder.h
diff -u llvm/include/llvm/CodeGen/MachineInstrBuilder.h:1.15 llvm/include/llvm/CodeGen/MachineInstrBuilder.h:1.16
--- llvm/include/llvm/CodeGen/MachineInstrBuilder.h:1.15 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/MachineInstrBuilder.h Tue Nov 11 16:41:31 2003
@@ -25,6 +25,8 @@
#include "llvm/CodeGen/MachineInstr.h"
+namespace llvm {
+
class MachineInstrBuilder {
MachineInstr *MI;
public:
@@ -161,5 +163,7 @@
NumOperands+1)).addReg(DestReg,
MOTy::Def);
}
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/Passes.h
diff -u llvm/include/llvm/CodeGen/Passes.h:1.8 llvm/include/llvm/CodeGen/Passes.h:1.9
--- llvm/include/llvm/CodeGen/Passes.h:1.8 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/Passes.h Tue Nov 11 16:41:31 2003
@@ -15,6 +15,8 @@
#ifndef LLVM_CODEGEN_PASSES_H
#define LLVM_CODEGEN_PASSES_H
+namespace llvm {
+
class FunctionPass;
class PassInfo;
class TargetMachine;
@@ -51,5 +53,7 @@
/// getRegisterAllocator - This creates an instance of the register allocator
/// for the Sparc.
FunctionPass *getRegisterAllocator(TargetMachine &T);
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/SSARegMap.h
diff -u llvm/include/llvm/CodeGen/SSARegMap.h:1.7 llvm/include/llvm/CodeGen/SSARegMap.h:1.8
--- llvm/include/llvm/CodeGen/SSARegMap.h:1.7 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/SSARegMap.h Tue Nov 11 16:41:31 2003
@@ -19,6 +19,8 @@
#include "llvm/Target/MRegisterInfo.h"
+namespace llvm {
+
class TargetRegisterClass;
class SSARegMap {
@@ -43,5 +45,7 @@
return RegClassMap.size()+MRegisterInfo::FirstVirtualRegister-1;
}
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/SchedGraphCommon.h
diff -u llvm/include/llvm/CodeGen/SchedGraphCommon.h:1.7 llvm/include/llvm/CodeGen/SchedGraphCommon.h:1.8
--- llvm/include/llvm/CodeGen/SchedGraphCommon.h:1.7 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/SchedGraphCommon.h Tue Nov 11 16:41:31 2003
@@ -18,6 +18,8 @@
#include "llvm/Value.h"
#include <vector>
+namespace llvm {
+
class SchedGraphEdge;
class SchedGraphNode;
@@ -216,5 +218,7 @@
SchedGraphCommon() {}
~SchedGraphCommon();
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.4 llvm/include/llvm/CodeGen/SelectionDAG.h:1.5
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.4 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/SelectionDAG.h Tue Nov 11 16:41:31 2003
@@ -27,6 +27,9 @@
#include <map>
#include <vector>
#include <cassert>
+
+namespace llvm {
+
class Value;
class Type;
class Instruction;
@@ -361,5 +364,7 @@
typedef ReducedValue<uint64_t , ISD::Constant_i64_Slot> ReducedValue_Constant_i64;
typedef ReducedValue<float , ISD::Constant_f32_Slot> ReducedValue_Constant_f32;
typedef ReducedValue<double , ISD::Constant_f64_Slot> ReducedValue_Constant_f64;
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/ValueSet.h
diff -u llvm/include/llvm/CodeGen/ValueSet.h:1.13 llvm/include/llvm/CodeGen/ValueSet.h:1.14
--- llvm/include/llvm/CodeGen/ValueSet.h:1.13 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/ValueSet.h Tue Nov 11 16:41:31 2003
@@ -17,6 +17,9 @@
#define VALUE_SET_H
#include <set>
+
+namespace llvm {
+
class Value;
// RAV - Used to print values in a form used by the register allocator.
@@ -30,5 +33,7 @@
typedef std::set<const Value*> ValueSet;
void printSet(const ValueSet &S);
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/CodeGen/ValueTypes.h
diff -u llvm/include/llvm/CodeGen/ValueTypes.h:1.4 llvm/include/llvm/CodeGen/ValueTypes.h:1.5
--- llvm/include/llvm/CodeGen/ValueTypes.h:1.4 Mon Oct 20 15:19:23 2003
+++ llvm/include/llvm/CodeGen/ValueTypes.h Tue Nov 11 16:41:31 2003
@@ -16,6 +16,8 @@
#ifndef LLVM_CODEGEN_VALUETYPES_H
#define LLVM_CODEGEN_VALUETYPES_H
+namespace llvm {
+
/// MVT namespace - This namespace defines the ValueType enum, which contains
/// the various low-level value types.
///
@@ -40,5 +42,6 @@
};
};
-#endif
+} // End llvm namespace
+#endif
More information about the llvm-commits
mailing list