llvm-project/llvm/lib/Target/XCore
Fangrui Song aa708763d3 [MC] Add parameter `Address` to MCInstPrinter::printInst
printInst prints a branch/call instruction as `b offset` (there are many
variants on various targets) instead of `b address`.

It is a convention to use address instead of offset in most external
symbolizers/disassemblers. This difference makes `llvm-objdump -d`
output unsatisfactory.

Add `uint64_t Address` to printInst(), so that it can pass the argument to
printInstruction(). `raw_ostream &OS` is moved to the last to be
consistent with other print* methods.

The next step is to pass `Address` to printInstruction() (generated by
tablegen from the instruction set description). We can gradually migrate
targets to print addresses instead of offsets.

In any case, downstream projects which don't know `Address` can pass 0 as
the argument.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D72172
2020-01-06 20:42:22 -08:00
..
Disassembler [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
MCTargetDesc [MC] Add parameter `Address` to MCInstPrinter::printInst 2020-01-06 20:42:22 -08:00
TargetInfo [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
CMakeLists.txt [XCore] Move InstPrinter files to MCTargetDesc. NFC 2019-05-10 23:36:49 +00:00
LLVMBuild.txt [XCore] Move InstPrinter files to MCTargetDesc. NFC 2019-05-10 23:36:49 +00:00
README.txt
XCore.h
XCore.td
XCoreAsmPrinter.cpp [Alignment][NFC] Remove unneeded llvm:: scoping on Align types 2019-09-27 12:54:21 +00:00
XCoreCallingConv.td
XCoreFrameLowering.cpp [Alignment][NFC] Use Align for TargetFrameLowering/Subtarget 2019-10-17 07:49:39 +00:00
XCoreFrameLowering.h
XCoreFrameToArgsOffsetElim.cpp Apply llvm-prefer-register-over-unsigned from clang-tidy to LLVM 2019-08-15 19:22:08 +00:00
XCoreISelDAGToDAG.cpp [IR] Split out target specific intrinsic enums into separate headers 2019-12-11 18:02:14 -08:00
XCoreISelLowering.cpp [IR] Split out target specific intrinsic enums into separate headers 2019-12-11 18:02:14 -08:00
XCoreISelLowering.h
XCoreInstrFormats.td
XCoreInstrInfo.cpp Use MCRegister in copyPhysReg 2019-11-11 14:42:33 +05:30
XCoreInstrInfo.h Use MCRegister in copyPhysReg 2019-11-11 14:42:33 +05:30
XCoreInstrInfo.td
XCoreLowerThreadLocal.cpp [IR] Split out target specific intrinsic enums into separate headers 2019-12-11 18:02:14 -08:00
XCoreMCInstLower.cpp
XCoreMCInstLower.h
XCoreMachineFunctionInfo.cpp
XCoreMachineFunctionInfo.h
XCoreRegisterInfo.cpp [cfi] Add flag to always generate .debug_frame 2019-10-31 09:48:30 +00:00
XCoreRegisterInfo.h CodeGen: Introduce a class for registers 2019-06-24 15:50:29 +00:00
XCoreRegisterInfo.td
XCoreSelectionDAGInfo.cpp
XCoreSelectionDAGInfo.h
XCoreSubtarget.cpp
XCoreSubtarget.h
XCoreTargetMachine.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
XCoreTargetMachine.h
XCoreTargetObjectFile.cpp
XCoreTargetObjectFile.h
XCoreTargetStreamer.h
XCoreTargetTransformInfo.h recommit: [LoopVectorize][PowerPC] Estimate int and float register pressure separately in loop-vectorize 2019-10-12 02:53:04 +00:00

README.txt

To-do
-----

* Instruction encodings
* Tailcalls
* Investigate loop alignment
* Add builtins