search for: dk_error

Displaying 4 results from an estimated 4 matches for "dk_error".

2012 Sep 07
1
[LLVMdev] teaching FileCheck to handle variations in order
...} + + if (IsCheckPop) { + NextCheckPopLoc = SMLoc::getFromPointer(CheckPrefixStart); + NextCheckPopPos++; + continue; + } + + if (IsCheckHWM) { + if (NextCheckPopPos) { + SM.PrintMessage(SMLoc::getFromPointer(CheckPrefixStart), + SourceMgr::DK_Error, + "found '"+CheckPrefix+"-HWM:' without previous '"+ + CheckPrefix+ ": line"); + } + NextCheckPopLoc = SMLoc::getFromPointer(CheckPrefixStart); + NextCheckPopPos = -1; + continue; + } +...
2020 Feb 04
3
Reporting source errors from MCCodeEmitter::encodeInstruction() ?
[apologies for this duplicate post: originally sent to lldb-dev by not paying attention to the address auto-completion] We have a backend for a target that at present only detects some assembler errors when emitting instructions (basically because the platform has configurable properties with dependencies between instructions and it was easier to check for their interaction late than try to
2012 Sep 07
0
[LLVMdev] teaching FileCheck to handle variations in order
On 9/7/2012 7:20 AM, Matthew Curtis wrote: > > The attached patch implements one possible solution. It introduces a > position stack and a couple of directives: > > * 'CHECK-PUSH:' pushes the current match position onto the stack. > * 'CHECK-POP:' pops the top value off of the stack and uses it to set > the current match position. > > The above
2012 Sep 07
5
[LLVMdev] teaching FileCheck to handle variations in order
...;StringRef> BufferStack; for (unsigned StrNo = 0, e = CheckStrings.size(); StrNo != e; ++StrNo) { const CheckString &CheckStr = CheckStrings[StrNo]; + for (int i = CheckStr.PopPos; i; --i) { + if (BufferStack.empty()) { + SM.PrintMessage(CheckStr.PopLoc, SourceMgr::DK_Error, + "attempting to '"+CheckPrefix+"-POP:' without previous '"+ + CheckPrefix+ "-PUSH:'"); + return 1; + } + Buffer= BufferStack.back(); + BufferStack.pop_back(); + } + StringRef...