The current body of the feature is empty. This patch produces the real info describing the given MC operand. Such extended debug logging realy helped when I was working with D41595.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/X86/AsmParser/X86Operand.h | ||
---|---|---|
115 ↗ | (On Diff #128270) | If possible, I'd make this a lambda function inside the print function below and hopefully remove the need for the union. |
Comment Actions
A couple of minors, but no more comments from me. @craig.topper ?
lib/Target/X86/AsmParser/X86Operand.h | ||
---|---|---|
102 ↗ | (On Diff #129067) | Capitalization: PrintImmValue |
107 ↗ | (On Diff #129067) | Add an assert message |
lib/Target/X86/AsmParser/X86Operand.h | ||
---|---|---|
107 ↗ | (On Diff #129067) | Maybe it's better something like (instead of assertion): if (const MCSymbolRefExpr &SRE = dyn_cast<MCSymbolRefExpr>(*Val)) { const MCSymbol &Sym = SRE.getSymbol(); if (auto SymName = Sym.getName().data()) ...... to be sure it can't raise exception? |
lib/Target/X86/AsmParser/X86Operand.h | ||
---|---|---|
39 ↗ | (On Diff #129111) | Why isn't this part of the RegOp struct? Though I suggested a way we can remove this entirely further down. |
121 ↗ | (On Diff #129111) | It would print lower case instead of upper case, but I think you can use X86IntelInstPrinter::getRegisterName which is a static method and then you wouldn't have to pass MRI around. |