search for: smloc

Displaying 20 results from an estimated 34 matches for "smloc".

Did you mean: sloc
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...Twine; class AsmParser : public MCAsmParser { -private: +protected: AsmLexer Lexer; MCContext &Ctx; MCStreamer &Out; +private: SourceMgr &SrcMgr; TargetAsmParser *TargetParser; @@ -88,14 +90,23 @@ public: virtual bool ParseParenExpression(const MCExpr *&Res, SMLoc &EndLoc); virtual bool ParseAbsoluteExpression(int64_t &Res); + virtual bool ParseInstruction(const StringRef &Name, SMLoc NameLoc, + SmallVectorImpl<MCParsedAsmOperand*> &Operands) = 0; + virtual const MCSection *getInitialTextSection() =...
2012 Sep 07
1
[LLVMdev] teaching FileCheck to handle variations in order
...heck/FileCheck.cpp @@ -50,11 +50,23 @@ NoCanonicalizeWhiteSpace("strict-whitespace", //===----------------------------------------------------------------------===// class Pattern { +public: + enum MatchType { + MatchStr, + MatchCurrent, + MatchEndOfFile + }; + +private: SMLoc PatternLoc; - /// MatchEOF - When set, this pattern only matches the end of file. This is - /// used for trailing CHECK-NOTs. - bool MatchEOF; + /// MatchType - When set to ... + /// MatchStr, this pattern matches according to FixedStr or RegExStr. + /// MatchCurrent, this pattern match...
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
...heck/FileCheck.cpp @@ -50,11 +50,23 @@ NoCanonicalizeWhiteSpace("strict-whitespace", //===----------------------------------------------------------------------===// class Pattern { +public: + enum MatchType { + MatchStr, + MatchCurrent, + MatchEndOfFile + }; + +private: SMLoc PatternLoc; - /// MatchEOF - When set, this pattern only matches the end of file. This is - /// used for trailing CHECK-NOTs. - bool MatchEOF; + /// MatchType - When set to ... + /// MatchStr, this pattern matches according to FixedStr or RegExStr. + /// MatchCurrent, this pattern match...
2014 Apr 08
2
[LLVMdev] 3.4.1 Release Plans
On Tue, Apr 08, 2014 at 04:08:13PM +0400, Robert Khasanov wrote: > Hi Reid, > > Would you approve your patches r203146 and r202774 to be backported to > 3.4.1? They fix stability issues in x86 asm. > Hi Robert, I was able to merge r203146, but it used a c++11 feature: std::string::back() which I replaced with std::string::at(std::string::size() - 1). r202774 was not merged,
2013 Jan 31
2
[LLVMdev] std::string suffices for Init* argument?
Hi Jakob, How is `FieldName`, which is a std::string, being passed as the third argument to SetValue on line 1848 of TGParser.cpp, which is declared as being an Init*? The nearly identical (FIXME) codepath in ParseDeclaration immediately puts the string into a StringInit, which makes sense, but how on earth is the std::string being passed in? This is really freaking me out. -- Sean Silva
2013 Jan 31
0
[LLVMdev] std::string suffices for Init* argument?
...d > as being an Init*? The nearly identical (FIXME) codepath in > ParseDeclaration immediately puts the string into a StringInit, which > makes sense, but how on earth is the std::string being passed in? This > is really freaking me out. See TGParser.h: bool SetValue(Record *TheRec, SMLoc Loc, Init *ValName, const std::vector<unsigned> &BitList, Init *V); bool SetValue(Record *TheRec, SMLoc Loc, const std::string &ValName, const std::vector<unsigned> &BitList, Init *V) { return SetValue(TheRec, Loc, StringInit::get(ValNam...
2017 May 27
6
Should we split llvm Support and ADT?
...pport/LowLevelTypeImpl.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MathExtras.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/Regex.h" #include "llvm/Support/SMLoc.h" #include "llvm/Support/ScopedPrinter.h" #include "llvm/Support/Signals.h" #include "llvm/Support/SourceMgr.h" #include "llvm/Support/raw_ostream.h" #include "llvm/ADT/APInt.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT...
2013 Jul 16
0
[LLVMdev] [PATCH 2/2] X86: infer immediate forms of bit-test instructions
...lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp index 263eb5e..fba0f3c 100644 --- a/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -2124,6 +2124,36 @@ ParseInstruction(ParseInstructionInfo &Info, StringRef Name, SMLoc NameLoc, } } + // Infer the immediate form of bit-test instructions without length suffix + // correctly. The register form works fine. + // bt{,r,s,..} $n, mem becomes btl $(n % 32), (mem + 4 * (n / 32)) + if (Name.startswith("bt") + && !(Name.endswith("b...
2017 May 29
3
Should we split llvm Support and ADT?
...brary.h > ELF.h > GCOV.h > GenericDomTree.h > GenericDomTreeConstruction.h > GraphWriter.h > LEB128.h > LockFileManager.h > LowLevelTypeImpl.h > MachO.def > MachO.h > MipsABIFlags.h > OnDiskHashTable.h > PluginLoader.h > Registry.h > ScopedPrinter.h > SMLoc.h > Solaris.h > SourceMgr.h > SpecialCaseList.h > TargetParser.h > TargetRegistry.h > TargetSelect.h > TarWriter.h > ToolOutputFile.h > TrigramIndex.h > TypeName.h > Valgrind.h > Wasm.h > YAMLParser.h > YAMLTraits.h > > > So, as a very crude first...
2015 Oct 23
3
[AMDGPU] AMDGPUAsmParser fails to parse several instructions
...efault_delete<llvm::MCParsedAsmOperand> > >&, llvm::StringRef) /mnt/dm-0/codebase/Compilers/LLVM/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp:1040:16 #11 0x46cd46 (anonymous namespace)::AMDGPUAsmParser::ParseInstruction(llvm::ParseInstructionInfo&, llvm::StringRef, llvm::SMLoc, llvm::SmallVectorImpl<std::unique_ptr<llvm::MCParsedAsmOperand, std::default_delete<llvm::MCParsedAsmOperand> > >&) /mnt/dm-0/codebase/Compilers/LLVM/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp:1085:43 ... The second line of the assembly has the assertion fail: llv...
2017 May 27
4
Should we split llvm Support and ADT?
...;llvm/Support/ManagedStatic.h" >> #include "llvm/Support/MathExtras.h" >> #include "llvm/Support/MemoryBuffer.h" >> #include "llvm/Support/PrettyStackTrace.h" >> #include "llvm/Support/Regex.h" >> #include "llvm/Support/SMLoc.h" >> #include "llvm/Support/ScopedPrinter.h" >> #include "llvm/Support/Signals.h" >> #include "llvm/Support/SourceMgr.h" >> #include "llvm/Support/raw_ostream.h" >> >> #include "llvm/ADT/APInt.h" >> #i...
2017 May 29
3
Should we split llvm Support and ADT?
2017-05-26 17:47 GMT-07:00 Zachary Turner via llvm-dev < llvm-dev at lists.llvm.org>: > Changing a header file somewhere and having to spend 10 minutes waiting > for a build leads to a lot of wasted developer time. > > The real culprit here is tablegen. Can we split support and ADT into two > - the parts that tablegen depends on and the parts that it doesn't? >
2017 May 27
3
Should we split llvm Support and ADT?
...>>> #include "llvm/Support/MathExtras.h" >>>> #include "llvm/Support/MemoryBuffer.h" >>>> #include "llvm/Support/PrettyStackTrace.h" >>>> #include "llvm/Support/Regex.h" >>>> #include "llvm/Support/SMLoc.h" >>>> #include "llvm/Support/ScopedPrinter.h" >>>> #include "llvm/Support/Signals.h" >>>> #include "llvm/Support/SourceMgr.h" >>>> #include "llvm/Support/raw_ostream.h" >>>> >>>> #...
2013 Jan 11
1
[LLVMdev] SMFixIt helps break TableGen in Trunk
...cpp:158:14: > error: > no viable conversion from 'llvm::Record *const' to 'llvm::SMRange' > return R->getSuperClassRanges()[i]; > ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/include/llvm/Support/SMLoc.h:47:7: > note: > candidate constructor (the implicit copy constructor) not > viable: no known conversion from > 'llvm::Record *const' to 'const llvm::SMRange &' for 1st argument > class SMRange { > ^ > /home/mdriftmeyer/DeveloperProjects...
2017 May 27
8
Should we split llvm Support and ADT?
...> #include "llvm/Support/ManagedStatic.h" > #include "llvm/Support/MathExtras.h" > #include "llvm/Support/MemoryBuffer.h" > #include "llvm/Support/PrettyStackTrace.h" > #include "llvm/Support/Regex.h" > #include "llvm/Support/SMLoc.h" > #include "llvm/Support/ScopedPrinter.h" > #include "llvm/Support/Signals.h" > #include "llvm/Support/SourceMgr.h" > #include "llvm/Support/raw_ostream.h" > > #include "llvm/ADT/APInt.h" > #include "llvm/ADT/ArrayR...
2013 Dec 12
3
[LLVMdev] [RFC PATCH 1/2] x86: Fix ModR/M byte output in 16-bit addressing mode
This attempts to address http://llvm.org/bugs/show_bug.cgi?id=18220 It also fixes a test which was requiring the *wrong* output. I'm relatively happy with this part, and it even solves most of the hard part of feature request for .code16 in bug 8684 — which was actually why I started prodding at this. But I could do with some help with the 16-bit signed relocation handling, which I've
2010 Dec 13
0
[LLVMdev] tblgen internals
...er, it would be good to make the Record ctor private so the code doesn't evolve into sometimes using one and sometimes using the other. Some minor coding style things: + RecordKeeper &getRecords() const { + return(TrackedRecords); + } + Record *createRecord(const std::string &N, SMLoc loc) { + return(new Record(N, loc, *this)); + } No need for the parens around the return value. + RecordKeeper& getRecords() { + return(Records); + } + + RecordKeeper& getRecords() const { + return(Records); + } Ditto. Also, if you have the later, you don't need the fo...
2017 May 30
3
Should we split llvm Support and ADT?
...dStatic.h" >>> #include "llvm/Support/MathExtras.h" >>> #include "llvm/Support/MemoryBuffer.h" >>> #include "llvm/Support/PrettyStackTrace.h" >>> #include "llvm/Support/Regex.h" >>> #include "llvm/Support/SMLoc.h" >>> #include "llvm/Support/ScopedPrinter.h" >>> #include "llvm/Support/Signals.h" >>> #include "llvm/Support/SourceMgr.h" >>> #include "llvm/Support/raw_ostream.h" >>> >>> #include "llvm/ADT/...
2010 Dec 12
2
[LLVMdev] tblgen internals
Hey Chris, The following patch removes all global references to a RecordKeeper instance for the tblgen utility. This effort was motivated by the FIXME remark, in TableGen.cpp. Although a few files were touched, the main change was to Record.h. The patch takes the simple approach of adding a RecordKeeper reference to TGParser, and any needed emitter helper classes. In addition, since some of