llvm-project/llvm/lib/Target/Lanai
Alex Bradbury 866113c2ea Add MCContext argument to MCAsmBackend::applyFixup for error reporting
A number of backends (AArch64, MIPS, ARM) have been using
MCContext::reportError to report issues such as out-of-range fixup values in
their TgtAsmBackend. This is great, but because MCContext couldn't easily be
threaded through to the adjustFixupValue helper function from its usual
callsite (applyFixup), these backends ended up adding an MCContext* argument
and adding another call to applyFixup to processFixupValue. Adding an
MCContext parameter to applyFixup makes this unnecessary, and even better -
applyFixup can take a reference to MCContext rather than a potentially null
pointer.

Differential Revision: https://reviews.llvm.org/D30264

llvm-svn: 299529
2017-04-05 10:16:14 +00:00
..
AsmParser clean Lanai namespace 2017-03-16 23:22:10 +00:00
Disassembler [AArch64, Lanai] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-06 00:30:53 +00:00
InstPrinter [Lanai] Rename LanaiInstPrinter library to LanaiAsmPrinter 2017-01-24 17:27:01 +00:00
MCTargetDesc Add MCContext argument to MCAsmBackend::applyFixup for error reporting 2017-04-05 10:16:14 +00:00
TargetInfo Move the global variables representing each Target behind accessor function 2016-10-09 23:00:34 +00:00
CMakeLists.txt [lanai] Use peephole optimizer to generate more conditional ALU operations. 2016-07-07 23:36:04 +00:00
LLVMBuild.txt [Lanai] Rename LanaiInstPrinter library to LanaiAsmPrinter 2017-01-24 17:27:01 +00:00
Lanai.h Move the global variables representing each Target behind accessor function 2016-10-09 23:00:34 +00:00
Lanai.td
LanaiAluCode.h [lanai] Use const instead of constexpr 2016-08-23 14:36:53 +00:00
LanaiAsmPrinter.cpp Move the global variables representing each Target behind accessor function 2016-10-09 23:00:34 +00:00
LanaiCallingConv.td
LanaiCondCode.h
LanaiDelaySlotFiller.cpp Use StringRef in Pass/PassManager APIs (NFC) 2016-10-01 02:56:57 +00:00
LanaiFrameLowering.cpp MachineFunction: Return reference for getFrameInfo(); NFC 2016-07-28 18:40:00 +00:00
LanaiFrameLowering.h [lanai] Small cleanup: remove/comment out unused args 2016-07-15 22:38:32 +00:00
LanaiISelDAGToDAG.cpp [lanai] Manually match 0/-1 with R0/R1. 2016-11-29 23:01:09 +00:00
LanaiISelLowering.cpp [AArch64, Lanai] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-06 00:30:53 +00:00
LanaiISelLowering.h [lanai] Custom lowering of SHL_PARTS 2016-12-02 22:01:28 +00:00
LanaiInstrFormats.td
LanaiInstrInfo.cpp [CodeGen] Rename MachineInstrBuilder::addOperand. NFC 2017-01-13 09:58:52 +00:00
LanaiInstrInfo.h Finish renaming remaining analyzeBranch functions 2016-09-14 20:43:16 +00:00
LanaiInstrInfo.td [lanai] Manually match 0/-1 with R0/R1. 2016-11-29 23:01:09 +00:00
LanaiMCInstLower.cpp Cleanup dump() functions. 2017-01-28 02:02:38 +00:00
LanaiMCInstLower.h Actually remove the Mangler from the AsmPrinter and clean up the places it was "used" but not used. 2016-09-16 17:07:23 +00:00
LanaiMachineFunctionInfo.cpp
LanaiMachineFunctionInfo.h
LanaiMemAluCombiner.cpp Use StringRef in Pass/PassManager APIs (NFC) 2016-10-01 02:56:57 +00:00
LanaiRegisterInfo.cpp MachineFunction: Return reference for getFrameInfo(); NFC 2016-07-28 18:40:00 +00:00
LanaiRegisterInfo.h [AArch64, Lanai] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-06 00:30:53 +00:00
LanaiRegisterInfo.td
LanaiSchedule.td
LanaiSelectionDAGInfo.cpp [lanai] Small cleanup: remove/comment out unused args 2016-07-15 22:38:32 +00:00
LanaiSelectionDAGInfo.h
LanaiSubtarget.cpp [lanai] Small cleanup: remove/comment out unused args 2016-07-15 22:38:32 +00:00
LanaiSubtarget.h
LanaiTargetMachine.cpp Move the global variables representing each Target behind accessor function 2016-10-09 23:00:34 +00:00
LanaiTargetMachine.h [lanai] Small cleanup: remove/comment out unused args 2016-07-15 22:38:32 +00:00
LanaiTargetObjectFile.cpp [lanai] Simplify small section check in LowerGlobalAddress and treat ldata sections specially. 2016-12-15 16:56:16 +00:00
LanaiTargetObjectFile.h Target: Change various section classifiers in TargetLoweringObjectFile to take a GlobalObject. 2016-10-24 19:23:39 +00:00
LanaiTargetTransformInfo.h [X86] updating TTI costs for arithmetic instructions on X86\SLM arch. 2017-01-11 08:23:37 +00:00