llvm.org GIT mirror llvm / 35c6889
Update function names to conform to guidelines. No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163561 91177308-0d34-0410-b5e6-96231b3b80d8 Chad Rosier 8 years ago
7 changed file(s) with 14 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
8888 }
8989 }
9090
91 /// print_pcrel_imm - This is used to print an immediate value that ends up
91 /// printPCRelImm - This is used to print an immediate value that ends up
9292 /// being encoded as a pc-relative value (e.g. for jumps and calls). These
9393 /// print slightly differently than normal immediates. For example, a $ is not
9494 /// emitted.
95 void X86ATTInstPrinter::print_pcrel_imm(const MCInst *MI, unsigned OpNo,
96 raw_ostream &O) {
95 void X86ATTInstPrinter::printPCRelImm(const MCInst *MI, unsigned OpNo,
96 raw_ostream &O) {
9797 const MCOperand &Op = MI->getOperand(OpNo);
9898 if (Op.isImm())
9999 O << Op.getImm();
3939 void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &OS);
4040 void printMemReference(const MCInst *MI, unsigned Op, raw_ostream &OS);
4141 void printSSECC(const MCInst *MI, unsigned Op, raw_ostream &OS);
42 void print_pcrel_imm(const MCInst *MI, unsigned OpNo, raw_ostream &OS);
42 void printPCRelImm(const MCInst *MI, unsigned OpNo, raw_ostream &OS);
4343
4444 void printopaquemem(const MCInst *MI, unsigned OpNo, raw_ostream &O) {
4545 printMemReference(MI, OpNo, O);
8181 }
8282 }
8383
84 /// print_pcrel_imm - This is used to print an immediate value that ends up
84 /// printPCRelImm - This is used to print an immediate value that ends up
8585 /// being encoded as a pc-relative value.
86 void X86IntelInstPrinter::print_pcrel_imm(const MCInst *MI, unsigned OpNo,
87 raw_ostream &O) {
86 void X86IntelInstPrinter::printPCRelImm(const MCInst *MI, unsigned OpNo,
87 raw_ostream &O) {
8888 const MCOperand &Op = MI->getOperand(OpNo);
8989 if (Op.isImm())
9090 O << Op.getImm();
3636 void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);
3737 void printMemReference(const MCInst *MI, unsigned Op, raw_ostream &O);
3838 void printSSECC(const MCInst *MI, unsigned Op, raw_ostream &O);
39 void print_pcrel_imm(const MCInst *MI, unsigned OpNo, raw_ostream &O);
39 void printPCRelImm(const MCInst *MI, unsigned OpNo, raw_ostream &O);
4040
4141 void printopaquemem(const MCInst *MI, unsigned OpNo, raw_ostream &O) {
4242 O << "OPAQUE PTR ";
205205 }
206206 }
207207
208 /// print_pcrel_imm - This is used to print an immediate value that ends up
208 /// printPCRelImm - This is used to print an immediate value that ends up
209209 /// being encoded as a pc-relative value. These print slightly differently, for
210210 /// example, a $ is not emitted.
211 void X86AsmPrinter::print_pcrel_imm(const MachineInstr *MI, unsigned OpNo,
211 void X86AsmPrinter::printPCRelImm(const MachineInstr *MI, unsigned OpNo,
212212 raw_ostream &O) {
213213 const MachineOperand &MO = MI->getOperand(OpNo);
214214 switch (MO.getType()) {
458458 return false;
459459
460460 case 'P': // This is the operand of a call, treat specially.
461 print_pcrel_imm(MI, OpNo, O);
461 printPCRelImm(MI, OpNo, O);
462462 return false;
463463
464464 case 'n': // Negate the immediate or print a '-' before the operand.
5050 // These methods are used by the tablegen'erated instruction printer.
5151 void printOperand(const MachineInstr *MI, unsigned OpNo, raw_ostream &O,
5252 const char *Modifier = 0, unsigned AsmVariant = 0);
53 void print_pcrel_imm(const MachineInstr *MI, unsigned OpNo, raw_ostream &O);
53 void printPCRelImm(const MachineInstr *MI, unsigned OpNo, raw_ostream &O);
5454
5555 bool printAsmMRegister(const MachineOperand &MO, char Mode, raw_ostream &O);
5656 bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
396396
397397 let OperandType = "OPERAND_PCREL",
398398 ParserMatchClass = X86AbsMemAsmOperand,
399 PrintMethod = "print_pcrel_imm" in {
399 PrintMethod = "printPCRelImm" in {
400400 def i32imm_pcrel : Operand;
401401 def i16imm_pcrel : Operand;
402402
498498 // 64-bits but only 32 bits are significant, and those bits are treated as being
499499 // pc relative.
500500 def i64i32imm_pcrel : Operand {
501 let PrintMethod = "print_pcrel_imm";
501 let PrintMethod = "printPCRelImm";
502502 let ParserMatchClass = X86AbsMemAsmOperand;
503503 let OperandType = "OPERAND_PCREL";
504504 }