Displaying 13 results from an estimated 13 matches for "mcasmparser".
Did you mean:
asmparser
2015 Dec 17
2
llvm-3.6 MCAsmParser x64 Error "invalid operand for instruction" when msb set
...2, for example:
"add rax, 0x80000000", "add rax, 0xffffffff", ...
"imul rbx, rsi, 0x80000000", "imul rbx, rsi, 0xffffffff", ...
The Error Message I receive is the following:
"Instruction:1:1: error: invalid operand for instruction"
I was using the MCAsmParser, with the RelaxAll Flag set to true, for the MCStreamer.
Can someone clarify, as to why this is happening, or what I am missing?
Thank you in advance.
Kind regards
Roman
________________________________
________________________________________________
SFNT Germany GmbH
Registered office: Gabr...
2018 May 10
1
Assembly file compilation flow
I think a key point to understand is the MCStreamer interface, which has two implementations: one for object-file generation, and one for .s file generation. CodeGen/AsmPrinter can attach to either of these implementations. MCAsmParser will generally attach to the object-file version of MCStreamer.
--paulr
From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Craig Topper via llvm-dev
Sent: Thursday, May 10, 2018 4:47 PM
To: soham1 at bu.edu
Cc: llvm-dev
Subject: Re: [llvm-dev] Assembly file compilation flow
P...
2015 Apr 14
7
[LLVMdev] RFC building a target MCAsmParser
Hi everyone. We're interested in contributing a Hexagon assembler to MC and
we're looking for comments on a good way to integrate the grammar in to the
infrastructure.
We rely on having a robust assembler because we have a large base of
developers that write in assembly due to low power requirements for mobile
devices. We put in some C-like concepts to make the syntax easier and this
2018 May 10
0
Assembly file compilation flow
Passing an assembly file to clang does not go through any CodeGen phases.
It operates entirely in the MC layer. No MachineFunctions will be created.
It just runs it through the MCAsmParser. Most of the setup for this is in
clang's tools/driver/cc1as_main.cpp in the function ExecuteAssembler
~Craig
On Thu, May 10, 2018 at 1:32 PM Soham Sinha via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hello,
>
> LLVM MC blog post
> <http://blog.llvm.org/2010/04/in...
2018 May 10
2
Assembly file compilation flow
Hello,
LLVM MC blog post
<http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html> explains
fairly well how the backend MC project is working. However, it's not clear
to me how LLVM converts an assembly file (.s) to an object file. The driver
--verbose option is not giving me much information as well. I want to know
the flow. Like, What CodeGen phases does this file pass through? Is
2016 Oct 06
2
How is target_triple/default_triple handled in tests?
As part of trying to fix PR30610 (ThinLTO with module inline asm), I wanted
to add an assert that we have a Target and an MCAsmParser when we have
non-null module inline asm in IRObjectFile::CollectAsmUndefinedRefs.
Otherwise it silently fails to parse the module inline asm, which I
initially found when trying to add an 'opt' based test for my fix (because
'opt' wasn't initializing asm parsers, something I am...
2015 Aug 20
2
Problem Compiling AsmParser
...et/Test/AsmParser/TestAsmParser.cpp:99: *undefined reference
to `(anonymous namespace)::TestAsmParser::ComputeAvailableFeatures(unsigned
long) const'*
collect2: error: ld returned 1 exit status
----------------
and here is the code that it refers to:
TestAsmParser(MCSubtargetInfo &sti, MCAsmParser &parser,
const MCInstrInfo &MII, const MCTargetOptions &Options)
: MCTargetAsmParser(), STI(sti), Parser(parser) {
// Initialize the set of available features.
setAvailableFeatures(ComputeAvailableFeatures(STI.getFeatureBits()));
}
Destructors for both T...
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...lude/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"
@@ -36,10 +37,11 @@ class TargetAsmParser;
class Twine;
class AsmParser : public MCAsmParser {...
2013 Jul 16
1
[LLVMdev] Instantiating Target-Specifc ASM Parser
Hello,
I am working on backend development and would like to utilize my target's MCAsmParser inside of an MCInst-level class implementation. I noticed that the AsmParser is registered with the target registry however I am having no luck grepping for a "template" of how to instantiate it and have yet to find specific documentation on how it is done. Any ideas or help is greatly ap...
2010 Oct 01
2
[LLVMdev] CMake "sudo make install" & headers
.../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/MCParsedAsmOperand.h
-- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCSection.h
-- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCSectionCOFF.h
--...
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
....cpp for Release+Asserts build
llvm[3]: Compiling MCAsmLexer.cpp for Release+Asserts build
make[2]: Entering directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/lib/Option'
llvm[2]: Compiling Arg.cpp for Release+Asserts build
llvm[2]: Compiling Binary.cpp for Release+Asserts build
llvm[3]: Compiling MCAsmParser.cpp for Release+Asserts build
llvm[2]: Compiling ArgList.cpp for Release+Asserts build
llvm[2]: Compiling LexicalScopes.cpp for Release+Asserts build
llvm[3]: Compiling MCAsmParserExtension.cpp for Release+Asserts build
llvm[2]: Compiling COFFObjectFile.cpp for Release+Asserts build
llvm[3]: Compil...