Home
last modified time | relevance | path

Searched refs:IDLoc (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp177 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
221 MacroExpanderResultTy tryExpandInstruction(MCInst &Inst, SMLoc IDLoc,
225 bool expandJalWithRegs(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out,
229 bool Is32BitImm, bool IsAddress, SMLoc IDLoc,
233 unsigned SrcReg, bool Is32BitSym, SMLoc IDLoc,
236 bool emitPartialAddress(MipsTargetStreamer &TOut, SMLoc IDLoc, MCSymbol *Sym);
238 bool expandLoadImm(MCInst &Inst, bool Is32BitImm, SMLoc IDLoc,
241 bool expandLoadSingleImmToGPR(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out,
243 bool expandLoadSingleImmToFPR(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out,
245 bool expandLoadDoubleImmToGPR(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/AsmParser/
H A DLoongArchAsmParser.cpp53 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
69 bool processInstruction(MCInst &Inst, SMLoc IDLoc, OperandVector &Operands,
88 SMLoc IDLoc, MCStreamer &Out, bool RelaxHint = false);
91 void emitLoadAddressAbs(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
94 void emitLoadAddressPcrel(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
96 void emitLoadAddressPcrelLarge(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
99 void emitLoadAddressGot(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
101 void emitLoadAddressGotLarge(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
104 void emitLoadAddressTLSLE(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
107 void emitLoadAddressTLSIE(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsTargetStreamer.h99 SMLoc IDLoc, const MCSubtargetInfo *STI);
121 void emitR(unsigned Opcode, unsigned Reg0, SMLoc IDLoc,
123 void emitII(unsigned Opcode, int16_t Imm1, int16_t Imm2, SMLoc IDLoc,
125 void emitRX(unsigned Opcode, unsigned Reg0, MCOperand Op1, SMLoc IDLoc,
127 void emitRI(unsigned Opcode, unsigned Reg0, int32_t Imm, SMLoc IDLoc,
129 void emitRR(unsigned Opcode, unsigned Reg0, unsigned Reg1, SMLoc IDLoc,
132 SMLoc IDLoc, const MCSubtargetInfo *STI);
134 SMLoc IDLoc, const MCSubtargetInfo *STI);
136 MCOperand Op3, SMLoc IDLoc, const MCSubtargetInfo *STI);
138 SMLoc IDLoc, const MCSubtargetInfo *STI);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsTargetStreamer.cpp140 int Offset, function_ref<unsigned()> GetATReg, SMLoc IDLoc, in emitDirectiveCpRestore() argument
175 void MipsTargetStreamer::emitR(unsigned Opcode, unsigned Reg0, SMLoc IDLoc, in emitR() argument
180 TmpInst.setLoc(IDLoc); in emitR()
185 SMLoc IDLoc, const MCSubtargetInfo *STI) { in emitRX() argument
190 TmpInst.setLoc(IDLoc); in emitRX()
195 SMLoc IDLoc, const MCSubtargetInfo *STI) { in emitRI() argument
196 emitRX(Opcode, Reg0, MCOperand::createImm(Imm), IDLoc, STI); in emitRI()
200 SMLoc IDLoc, const MCSubtargetInfo *STI) { in emitRR() argument
201 emitRX(Opcode, Reg0, MCOperand::createReg(Reg1), IDLoc, STI); in emitRR()
205 SMLoc IDLoc, const MCSubtargetInfo *STI) { in emitII() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/AsmParser/
H A DXtensaAsmParser.cpp50 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
57 bool processInstruction(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out,
365 bool XtensaAsmParser::processInstruction(MCInst &Inst, SMLoc IDLoc, in processInstruction() argument
368 Inst.setLoc(IDLoc); in processInstruction()
389 TmpInst.setLoc(IDLoc); in processInstruction()
400 TS.emitLiteral(Sym, Value, true, IDLoc); in processInstruction()
405 TmpInst.setLoc(IDLoc); in processInstruction()
417 TS.emitLiteral(Sym, Value, true, IDLoc); in processInstruction()
428 bool XtensaAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, in MatchAndEmitInstruction() argument
441 processInstruction(Inst, IDLoc, Out, STI); in MatchAndEmitInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp108 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
140 unsigned SecondOpcode, SMLoc IDLoc, MCStreamer &Out);
143 void emitLoadLocalAddress(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
146 void emitLoadGlobalAddress(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
149 void emitLoadAddress(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
153 void emitLoadTLSIEAddress(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
157 void emitLoadTLSGDAddress(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
160 void emitLoadStoreSymbol(MCInst &Inst, unsigned Opcode, SMLoc IDLoc,
165 SMLoc IDLoc, MCStreamer &Out);
168 void emitVMSGE(MCInst &Inst, unsigned Opcode, SMLoc IDLoc, MCStreamer &Out);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmParser.cpp197 SMLoc IDLoc);
1797 SMLoc IDLoc = ID.getLoc(); in parseStatement() local
1802 return parseCppHashLineFilenameComment(IDLoc, in parseStatement()
1811 return Error(IDLoc, "unexpected token at start of statement"); in parseStatement()
1820 return Error(IDLoc, "unexpected token at start of statement"); in parseStatement()
1845 return Error(IDLoc, "unexpected token at start of statement"); in parseStatement()
1868 return parseDirectiveIf(IDLoc, DirKind); in parseStatement()
1870 return parseDirectiveIfb(IDLoc, true); in parseStatement()
1872 return parseDirectiveIfb(IDLoc, false); in parseStatement()
1874 return parseDirectiveIfc(IDLoc, true); in parseStatement()
[all …]
H A DMasmParser.cpp2109 SMLoc IDLoc = ID.getLoc(); in parseStatement() local
2112 return parseCppHashLineFilenameComment(IDLoc); in parseStatement()
2122 return Error(IDLoc, "unexpected token at start of statement"); in parseStatement()
2126 return Error(IDLoc, "unexpected token at start of statement"); in parseStatement()
2144 return parseDirectiveIf(IDLoc, DirKind); in parseStatement()
2146 return parseDirectiveIfb(IDLoc, true); in parseStatement()
2148 return parseDirectiveIfb(IDLoc, false); in parseStatement()
2150 return parseDirectiveIfdef(IDLoc, true); in parseStatement()
2152 return parseDirectiveIfdef(IDLoc, false); in parseStatement()
2154 return parseDirectiveIfidn(IDLoc, /*ExpectEqual=*/false, in parseStatement()
[all …]
H A DDarwinAsmParser.cpp587 SMLoc IDLoc) { in parseDirectiveDumpOrLoad() argument
602 return Warning(IDLoc, "ignoring directive .dump for now"); in parseDirectiveDumpOrLoad()
604 return Warning(IDLoc, "ignoring directive .load for now"); in parseDirectiveDumpOrLoad()
761 bool DarwinAsmParser::parseDirectiveSecureLogUnique(StringRef, SMLoc IDLoc) { in parseDirectiveSecureLogUnique() argument
767 return Error(IDLoc, ".secure_log_unique specified multiple times"); in parseDirectiveSecureLogUnique()
772 return Error(IDLoc, ".secure_log_unique used but AS_SECURE_LOG_FILE " in parseDirectiveSecureLogUnique()
782 return Error(IDLoc, Twine("can't open secure log file: ") + in parseDirectiveSecureLogUnique()
789 unsigned CurBuf = getSourceManager().FindBufferContainingLoc(IDLoc); in parseDirectiveSecureLogUnique()
791 << ":" << getSourceManager().FindLineNumber(IDLoc, CurBuf) << ":" in parseDirectiveSecureLogUnique()
801 bool DarwinAsmParser::parseDirectiveSecureLogReset(StringRef, SMLoc IDLoc) { in parseDirectiveSecureLogReset() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp70 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
89 bool processInstruction(MCInst &Inst, SMLoc IDLoc, OperandVector &Operands,
91 bool processLRW(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
92 bool processJSRI(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
93 bool processJMPI(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
659 bool CSKYAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, in MatchAndEmitInstruction() argument
673 return processInstruction(Inst, IDLoc, Operands, Out); in MatchAndEmitInstruction()
684 return Error(IDLoc, Msg); in MatchAndEmitInstruction()
690 return Error(IDLoc, "unrecognized instruction mnemonic" + Suggestion); in MatchAndEmitInstruction()
694 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp131 bool finishBundle(SMLoc IDLoc, MCStreamer &Out);
133 bool matchOneInstruction(MCInst &MCB, SMLoc IDLoc,
137 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
144 bool OutOfRange(SMLoc IDLoc, long long Val, long long Max);
146 SMLoc IDLoc);
472 bool HexagonAsmParser::finishBundle(SMLoc IDLoc, MCStreamer &Out) { in finishBundle() argument
477 MCB.setLoc(IDLoc); in finishBundle()
516 auto IDLoc = Parser.getTok().getLoc(); in matchBundleOptions() local
528 return getParser().Error(IDLoc, MemNoShuffMsg); in matchBundleOptions()
532 return getParser().Error(IDLoc, llvm::Twine("'") + Option + in matchBundleOptions()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp37 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
307 bool BPFAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, in MatchAndEmitInstruction() argument
315 return Error(IDLoc, "additional inst constraint not met"); in MatchAndEmitInstruction()
321 Inst.setLoc(IDLoc); in MatchAndEmitInstruction()
325 return Error(IDLoc, "instruction use requires an option to be enabled"); in MatchAndEmitInstruction()
327 return Error(IDLoc, "unrecognized instruction mnemonic"); in MatchAndEmitInstruction()
329 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
338 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp1005 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned & /*Opcode*/, in MatchAndEmitInstruction() argument
1010 Inst.setLoc(IDLoc); in MatchAndEmitInstruction()
1034 if (!SkipTypeCheck && TC.typeCheck(IDLoc, Inst, Operands)) in MatchAndEmitInstruction()
1038 onEndOfFunction(IDLoc); in MatchAndEmitInstruction()
1052 return Parser.Error(IDLoc, Message); in MatchAndEmitInstruction()
1055 return Parser.Error(IDLoc, "invalid instruction"); in MatchAndEmitInstruction()
1057 return Parser.Error(IDLoc, "ambiguous instruction"); in MatchAndEmitInstruction()
1060 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1063 return Parser.Error(IDLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
1066 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp73 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
131 bool expandSET(MCInst &Inst, SMLoc IDLoc,
134 bool expandSETX(MCInst &Inst, SMLoc IDLoc,
646 bool SparcAsmParser::expandSET(MCInst &Inst, SMLoc IDLoc, in expandSET() argument
659 return Error(IDLoc, in expandSET()
685 TmpInst.setLoc(IDLoc); in expandSET()
710 TmpInst.setLoc(IDLoc); in expandSET()
720 bool SparcAsmParser::expandSETX(MCInst &Inst, SMLoc IDLoc, in expandSETX() argument
792 bool SparcAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, in MatchAndEmitInstruction() argument
805 Inst.setLoc(IDLoc); in MatchAndEmitInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp1197 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
1202 void MatchFPUWaitAlias(SMLoc IDLoc, X86Operand &Op, OperandVector &Operands,
1205 bool ErrorMissingFeature(SMLoc IDLoc, const FeatureBitset &MissingFeatures,
1208 bool matchAndEmitATTInstruction(SMLoc IDLoc, unsigned &Opcode, MCInst &Inst,
1212 bool matchAndEmitIntelInstruction(SMLoc IDLoc, unsigned &Opcode, MCInst &Inst,
4052 bool X86AsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, in MatchAndEmitInstruction() argument
4060 MatchFPUWaitAlias(IDLoc, static_cast<X86Operand &>(*Operands[0]), Operands, in MatchAndEmitInstruction()
4091 ? matchAndEmitIntelInstruction(IDLoc, Opcode, Inst, Operands, Out, in MatchAndEmitInstruction()
4093 : matchAndEmitATTInstruction(IDLoc, Opcode, Inst, Operands, Out, in MatchAndEmitInstruction()
4097 void X86AsmParser::MatchFPUWaitAlias(SMLoc IDLoc, X86Operand &Op, in MatchFPUWaitAlias() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp503 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
1519 bool SystemZAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, in MatchAndEmitInstruction() argument
1534 Inst.setLoc(IDLoc); in MatchAndEmitInstruction()
1549 return Error(IDLoc, Msg); in MatchAndEmitInstruction()
1553 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1556 return Error(IDLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
1560 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1569 return Error(IDLoc, "invalid instruction" + Suggestion, in MatchAndEmitInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/
H A DVEAsmParser.cpp54 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
763 bool VEAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, in MatchAndEmitInstruction() argument
772 Inst.setLoc(IDLoc); in MatchAndEmitInstruction()
777 return Error(IDLoc, in MatchAndEmitInstruction()
781 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction()
784 return Error(IDLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
788 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
794 return Error(IDLoc, "invalid instruction mnemonic"); in MatchAndEmitInstruction()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DMCTargetAsmParser.h480 virtual bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
537 virtual void doBeforeLabelEmit(MCSymbol *Symbol, SMLoc IDLoc) {} in doBeforeLabelEmit() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/
H A DAMDGPUAsmParser.cpp1586 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
1734 bool validateInstruction(const MCInst &Inst, const SMLoc &IDLoc, const OperandVector &Operands);
1746 bool validateMIMGDataSize(const MCInst &Inst, const SMLoc &IDLoc);
1747 bool validateMIMGAddrSize(const MCInst &Inst, const SMLoc &IDLoc);
1766 const SMLoc &IDLoc);
1782 bool checkUnsupportedInstruction(StringRef Name, const SMLoc &IDLoc);
3859 const SMLoc &IDLoc) { in validateMIMGDataSize() argument
3902 Error(IDLoc, Twine("image data size does not match ") + Modifiers); in validateMIMGDataSize()
3907 const SMLoc &IDLoc) { in validateMIMGAddrSize() argument
3933 Error(IDLoc, "image address size does not match a16"); in validateMIMGAddrSize()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaSwift.cpp283 IdentifierLoc *IDLoc = AL.getArgAsIdent(0); in handleAsyncError() local
285 if (!SwiftAsyncErrorAttr::ConvertStrToConventionKind(IDLoc->Ident->getName(), in handleAsyncError()
288 << AL << IDLoc->Ident; in handleAsyncError()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/
H A DPPCAsmParser.cpp126 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
1255 bool PPCAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, in MatchAndEmitInstruction() argument
1265 Inst.setLoc(IDLoc); in MatchAndEmitInstruction()
1269 return Error(IDLoc, "instruction use requires an option to be enabled"); in MatchAndEmitInstruction()
1274 return Error(IDLoc, "invalid instruction" + Suggestion, in MatchAndEmitInstruction()
1278 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1281 return Error(IDLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
1284 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp231 bool validateInstruction(MCInst &Inst, SMLoc &IDLoc,
234 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
5250 bool AArch64AsmParser::validateInstruction(MCInst &Inst, SMLoc &IDLoc, in validateInstruction() argument
5272 return Error(IDLoc, "instruction is unpredictable when following a" in validateInstruction()
5305 return Error(IDLoc, "instruction is unpredictable when following a" in validateInstruction()
5310 return Error(IDLoc, "instruction is unpredictable when following a" in validateInstruction()
5315 return Error(IDLoc, "instruction is unpredictable when following a" in validateInstruction()
5338 Warning(IDLoc, "register " + Twine(RI->getName(Reg)) + in validateInstruction()
6207 bool AArch64AsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, in MatchAndEmitInstruction() argument
6436 Warning(IDLoc, "instruction movi.2d with immediate #0 may not function" in MatchAndEmitInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp43 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/AsmParser/
H A DARMAsmParser.cpp726 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
744 SMLoc IDLoc, OperandVector &Operands);
745 void ReportNearMisses(SmallVectorImpl<NearMissInfo> &NearMisses, SMLoc IDLoc,
751 void doBeforeLabelEmit(MCSymbol *Symbol, SMLoc IDLoc) override;
11354 bool ARMAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, in MatchAndEmitInstruction() argument
11407 Inst.setLoc(IDLoc); in MatchAndEmitInstruction()
11417 ReportNearMisses(NearMisses, IDLoc, Operands); in MatchAndEmitInstruction()
11423 return Error(IDLoc, "invalid instruction" + Suggestion, in MatchAndEmitInstruction()
11620 void ARMAsmParser::doBeforeLabelEmit(MCSymbol *Symbol, SMLoc IDLoc) { in doBeforeLabelEmit() argument
12714 SMLoc IDLoc, OperandVector &Operands) { in FilterNearMisses() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp54 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,

12