llvm.org GIT mirror llvm / 0b51e4a
Add comments to describe what these functions actually do. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9370 91177308-0d34-0410-b5e6-96231b3b80d8 Misha Brukman 16 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1616 #include "llvm/DerivedTypes.h"
1717 #include "SparcInternals.h"
1818
19 // Choose load instruction opcode based on type of value
1920 inline MachineOpCode
2021 ChooseLoadInstruction(const Type *DestTy)
2122 {
3839 return 0;
3940 }
4041
42 // Choose store instruction opcode based on type of value
4143 inline MachineOpCode
4244 ChooseStoreInstruction(const Type *DestTy)
4345 {
8587 }
8688
8789
90 // Because the Sparc instruction selector likes to re-write operands to
91 // instructions, making them change from a Value* (virtual register) to a
92 // Constant* (making an immediate field), we need to change the opcode from a
93 // register-based instruction to an immediate-based instruction, hence this
94 // mapping.
8895 static unsigned
8996 convertOpcodeFromRegToImm(unsigned Opcode) {
9097 switch (Opcode) {