search for: finishparse

Displaying 6 results from an estimated 6 matches for "finishparse".

2013 Dec 17
2
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...various places in the code. Acronyms should be > capitalized, so "CP" instead of "Cp". Even better would be spelled out > names if they're short enough to make sense in the context of the code. I will clean that up when I rebase the changes. > +void ARMAsmParser::finishParse() { > + for (ConstantPoolMapTy::iterator CpI = ConstantPools.begin(), CpE = > ConstantPools.end(); CpI != CpE; ++CpI) { > + const MCSection *Section = CpI->first; > + ConstantPool &CP = CpI->second; > + MCStreamer &Streamer = getParser().getStreamer(); > +...
2013 Dec 17
0
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...x. + ConstantPoolMapTy::iterator Cp = ConstantPools.find(Section); Minor detail in various places in the code. Acronyms should be capitalized, so “CP” instead of “Cp”. Even better would be spelled out names if they’re short enough to make sense in the context of the code. +void ARMAsmParser::finishParse() { + for (ConstantPoolMapTy::iterator CpI = ConstantPools.begin(), CpE = ConstantPools.end(); CpI != CpE; ++CpI) { + const MCSection *Section = CpI->first; + ConstantPool &CP = CpI->second; + MCStreamer &Streamer = getParser().getStreamer(); + Streamer.SwitchSection(Sect...
2013 Nov 11
0
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
I have attached an initial patch that implements the ldr pseudo. It still needs some clean up and more tests, but I would like some feedback on the approach I used and if there are any objections to implementing it this way. Here is my approach: Add a finishParse() callback to the target asm parser This callback is invoked when the parse has finished successfully. It will be used to write out constant pools for the ldr pseudo. LDR pseudo implementation Keep a map from Section => ConstantPool When parsing ldr r0, =val parse val as an MCExpr...
2013 Nov 16
2
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
Moving discussion to llvm-commits now that I have a more developed implementation: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20131111/195401. html > -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On > Behalf Of David Peixotto > Sent: Tuesday, November 12, 2013 11:09 AM > To: 'Amara Emerson' >
2013 Dec 17
0
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
.... Acronyms should be >> capitalized, so "CP" instead of "Cp". Even better would be spelled out >> names if they're short enough to make sense in the context of the code. > > I will clean that up when I rebase the changes. > >> +void ARMAsmParser::finishParse() { >> + for (ConstantPoolMapTy::iterator CpI = ConstantPools.begin(), CpE = >> ConstantPools.end(); CpI != CpE; ++CpI) { >> + const MCSection *Section = CpI->first; >> + ConstantPool &CP = CpI->second; >> + MCStreamer &Streamer = getParser().ge...
2013 Nov 01
8
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
In an earlier email[1] I proposed adding support for the ldr pseud-instruction to the ARM integrated assembler. After some discussion the overall consensus seemed to be that it was worth adding. One concern was that we needed to have adequate testing. I promised to provide more details on what the behavior should be and provide some tests before starting the implementation. The FileCheck-ified