search for: asmlexer

Displaying 14 results from an estimated 14 matches for "asmlexer".

2014 Nov 12
2
[LLVMdev] Increase the flexibility of the AsmLexer in parsing identifiers.
Hello, I would like to gather some ideas and opinions on how to make the default AsmLexer more flexible when dealing with Identifiers. When the lexer emits something as an "Identifier" (read. String of characters) it means that it needs to be parsed all at once in a single go, even if it contains elements that might be wanted to be parsed as separate entities. In that case it...
2010 Apr 03
0
[LLVMdev] ARM AsmLexer
The attached patch implements simple target-specific AsmLexers for ARM and Thumb. They are shallow subclasses of a common tokenizer that uses a std::map of register names to IDs to recognize register names, and reports those as AsmToken::Register tokens instead of identifiers. I intend to use the ARM and Thumb AsmLexers as part of an extension of the Enhance...
2011 Aug 04
3
[LLVMdev] Multiple one-line bugs in LLVM
...PSYri:     DecodeVPERMILPSMask(8, MI->getOperand(2).getImm(),                         ShuffleMask);     Src1Name = getRegName(MI->getOperand(0).getReg()); The 'Src1Name' variable is assigned values twice successively. So break instruction should be at line 212. ---- lib/MC/MCParser/AsmLexer.cpp:149   while (CurChar != '\n' && CurChar != '\n' && CurChar != EOF) There are identical sub-expressions to the left and to the right of the '&&' operator: CurChar != '\n' && CurChar != '\n'. The second expression should pro...
2011 Aug 04
1
[LLVMdev] Multiple one-line bugs in LLVM
On Aug 4, 2011, at 9:03 AM, Duncan Sands wrote: >> >> lib/MC/MCParser/AsmLexer.cpp:149 >> while (CurChar != '\n'&& CurChar != '\n'&& CurChar != EOF) >> >> There are identical sub-expressions to the left and to the right of the '&&' >> operator: CurChar != '\n'&& CurChar != '\n...
2011 Aug 04
0
[LLVMdev] Multiple one-line bugs in LLVM
...ShuffleMask); > Src1Name = getRegName(MI->getOperand(0).getReg()); > > The 'Src1Name' variable is assigned values twice successively. So break > instruction should be at line 212. I've added the missing "break". > > ---- > > lib/MC/MCParser/AsmLexer.cpp:149 > while (CurChar != '\n'&& CurChar != '\n'&& CurChar != EOF) > > There are identical sub-expressions to the left and to the right of the '&&' > operator: CurChar != '\n'&& CurChar != '\n'. The second e...
2011 Sep 06
0
[LLVMdev] llvm-mc, files without newline at eof
A friendlier error message in that situation is definitely a good thing. -Jim On Sep 5, 2011, at 1:34 PM, Степан wrote: > Hi, everybody. > > I am a newbie in llvm development. I found some strange behaviour in llvm-mc. Files without empty string at the eof doesn't proceed properly. > > llvm-mc prints something like this: > <stdin>:5:18: error: unexpected token in
2012 May 23
0
[LLVMdev] Assembly macros instantiation problem
...names, compilation would succeed. Such behavior is due to the glitch in AsmParser::expandMacro() logic: it treats first non-alphanumeric character as the end of argument instantiation token. Following patch fixes the issue (IsIdentifierChar routine implementation was borrowed from lib/MC/MCParser/AsmLexer.cpp): =================================================================== --- lib/MC/MCParser/AsmParser.cpp (revision 157279) +++ lib/MC/MCParser/AsmParser.cpp (working copy) @@ -1436,6 +1436,11 @@ NewDiag.print(0, OS); } +/// LexIdentifier: [a-zA-Z_.][a-zA-Z0-9_$.@]* +static bool IsIdentif...
2011 Sep 05
2
[LLVMdev] llvm-mc, files without newline at eof
Hi, everybody. I am a newbie in llvm development. I found some strange behaviour in llvm-mc. Files without empty string at the eof doesn't proceed properly. llvm-mc prints something like this: <stdin>:5:18: error: unexpected token in argument list It looks like a bug. At least we should print: <stdin>:5:18: error: no newline at the end of file! If yes, I create it in bugzilla
2009 Nov 02
4
[LLVMdev] llvm-mc build fails
...Linking CXX executable ../../bin/llvm-mc cd /home/john/src/llvm_build/tools/llvm-mc && /usr/bin/cmake -E cmake_link_script CMakeFiles/llvm-mc.dir/link.txt --verbose=1 /usr/bin/c++ -g -fPIC CMakeFiles/llvm-mc.dir/llvm-mc.cpp.o CMakeFiles/llvm-mc.dir/AsmExpr.cpp.o CMakeFiles/llvm-mc.dir/AsmLexer.cpp.o CMakeFiles/llvm-mc.dir/AsmParser.cpp.o -o ../../bin/llvm-mc -rdynamic ../../lib/libLLVMAVRCodeGen.a ../../lib/libLLVMAVRAsmPrinter.a ../../lib/libLLVMAVRInfo.a ../../lib/libLLVMMC.a ../../lib/libLLVMSupport.a ../../lib/libLLVMSystem.a -ldl ../../lib/libLLVMSelectionDAG.a ../../lib/libLLVMAna...
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...100644 lib/MC/MCParser/MachOAsmParser.cpp diff --git a/include/llvm/MC/MCParser/AsmParser.h b/include/llvm/MC/MCParser/AsmParser.h index e929fd1..dc74299 100644 --- a/include/llvm/MC/MCParser/AsmParser.h +++ b/include/llvm/MC/MCParser/AsmParser.h @@ -17,6 +17,7 @@ #include "llvm/MC/MCParser/AsmLexer.h" #include "llvm/MC/MCParser/AsmCond.h" #include "llvm/MC/MCParser/MCAsmParser.h" +#include "llvm/MC/MCParser/MCParsedAsmOperand.h" #include "llvm/MC/MCSectionMachO.h" #include "llvm/MC/MCStreamer.h" #include "llvm/MC/MCAsmInfo.h&quo...
2010 Oct 01
2
[LLVMdev] CMake "sudo make install" & headers
...vm-2.8/include/llvm/MC/MCObjectStreamer.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCObjectWriter.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser/AsmCond.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser/AsmLexer.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser/MCAsmLexer.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser/MCAsmParser.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser/MCAsmParserExtension.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser/MCParse...
2010 Oct 01
0
[LLVMdev] CMake "sudo make install" & headers
On Thu, Sep 30, 2010 at 3:08 PM, Samuel Williams <space.ship.traveller at gmail.com> wrote: > Hi, > > I might just be doing something stupid, but when I do > > $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8 -DCMAKE_BUILD_TYPE=Release .. > $ sudo make install > > I don't get the expected headers in >        /usr/local/llvm-2.8/include/llvm > > It is
2010 Sep 30
6
[LLVMdev] CMake "sudo make install" & headers
Hi, I might just be doing something stupid, but when I do $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8 -DCMAKE_BUILD_TYPE=Release .. $ sudo make install I don't get the expected headers in /usr/local/llvm-2.8/include/llvm It is simply an empty directory. What am I doing wrong? This is on Mac OS X, CMake 2.8+ Kind regards, Samuel
2015 Jul 29
1
[LLVMdev] Error when i am using command make -j4 command in cygwin to compile safecode
...for Release+Asserts build make[3]: Leaving directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/lib/Transforms/ObjCARC' make[2]: Entering directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/lib/MC' make[3]: Entering directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/lib/MC/MCParser' llvm[3]: Compiling AsmLexer.cpp for Release+Asserts build llvm[3]: Compiling PruneEH.cpp for Release+Asserts build llvm[2]: Building Release+Asserts Archive Library libLLVMLTO.a make[2]: Leaving directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/lib/LTO' llvm[2]: Compiling InterferenceCache.cpp for Release+Asserts build llvm[...