summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/TableGen.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* rename TGLoc -> SMLoc.Chris Lattner2009-06-211-2/+2
| | | | llvm-svn: 73843
* rename -gen-clang-diags-options -> -gen-clang-diag-groupsChris Lattner2009-04-151-5/+5
| | | | llvm-svn: 69208
* Add another Clang TableGen-backend (-gen-clang-diags-options) for emittingTed Kremenek2009-03-181-0/+6
| | | | | | | | | | | | declarations for controlling groups of warnings. Currently this transforms: def UnusedMacrosDiags : Option<"unused-macros", [pp_macro_not_used]>; into: static const diag::kind UnusedMacrosDiags[] = { diag::pp_macro_not_used }; llvm-svn: 67239
* Add (hidden) TableGen command option '-clang-component' which specifies theTed Kremenek2009-03-131-1/+6
| | | | | | | | | component's warnings to process for '-gen-clang-diags-defs'. Also, when the component is specified, generate a '#if' prologue at the top of the generated .def file (to match the current files). llvm-svn: 66975
* Add initial implementation of a TableGen backend for converting Clang-warningsTed Kremenek2009-03-131-2/+7
| | | | | | | tablegen files to the original .def preprocessor include files. This is my first TableGen backend; I don't claim that it is awesome. llvm-svn: 66971
* add a new TGError class and use it to propagate location info withChris Lattner2009-03-131-19/+14
| | | | | | | | | | | | | | | | | | | | | errors when thrown. This gets us nice errors like this from tblgen: CMOVL32rr: (set GR32:i32:$dst, (X86cmov GR32:$src1, GR32:$src2)) /Users/sabre/llvm/Debug/bin/tblgen: error: Included from X86.td:116: Parsing X86InstrInfo.td:922: In CMOVL32rr: X86cmov node requires exactly 4 operands! def CMOVL32rr : I<0x4C, MRMSrcReg, // if <s, GR32 = GR32 ^ instead of just: CMOVL32rr: (set GR32:i32:$dst, (X86cmov GR32:$src1, GR32:$src2)) /Users/sabre/llvm/Debug/bin/tblgen: In CMOVL32rr: X86cmov node requires exactly 4 operands! This is all I plan to do with this, but it should be easy enough to improve if anyone cares (e.g. keeping more loc info in "dag" expr records in tblgen. llvm-svn: 66898
* give each Record a location.Chris Lattner2009-03-131-1/+10
| | | | llvm-svn: 66897
* make "locations" a class instead of a typedef.Chris Lattner2009-03-131-2/+1
| | | | llvm-svn: 66895
* split buffer management and diagnostic printing out of the tblgenChris Lattner2009-03-131-4/+11
| | | | | | lexer into its own TGSourceMgr class. llvm-svn: 66873
* Change various llvm utilities to use PrettyStackTraceProgram inChris Lattner2009-03-061-0/+3
| | | | | | | their main routines. This makes the tools print their argc/argv commands if they crash. llvm-svn: 66248
* Reapply 63765. Patches for clang and llvm-gcc to follow.Dale Johannesen2009-02-051-0/+6
| | | | llvm-svn: 63812
* Reverting 63765. This broke the build of both clangDale Johannesen2009-02-041-6/+0
| | | | | | and llvm-gcc. llvm-svn: 63786
* New feature: add support for target intrinsics being defined in theNate Begeman2009-02-041-0/+6
| | | | | | | | | target directories themselves. This also means that VMCore no longer needs to know about every target's list of intrinsics. Future work will include converting the PowerPC target to this interface as an example implementation. llvm-svn: 63765
* Make tablegen print out a nice error message for a const char*Dan Gohman2008-11-071-0/+7
| | | | | | exception, like it does for a std::string exception. llvm-svn: 58865
* Initial checkin of the new "fast" instruction selection support. SeeDan Gohman2008-08-131-0/+7
| | | | | | | the comments in FastISelEmitter.cpp for details on what this is. This is currently experimental and unusable. llvm-svn: 54751
* Naming fix: LLVMCCConfigurationEmitter -> LLVMCConfigurationEmitter.Mikhail Glushenkov2008-05-061-5/+5
| | | | llvm-svn: 50754
* Rename LLVMCCConfigurationEmitter to LLVMCConfigurationEmitterMikhail Glushenkov2008-05-061-5/+5
| | | | llvm-svn: 50748
* Change the MemoryBuffer::getFile* methods to take just a pointer to theChris Lattner2008-04-011-2/+1
| | | | | | | | start of a filename, not a filename+length. All clients can produce a null terminated name, and the system api's require null terminated strings anyway. llvm-svn: 49041
* Add first proof-of-concept universal compiler driver framework basedAnton Korobeynikov2008-03-231-1/+8
| | | | | | | | | on ideas mentioned in PR686. Written by Mikhail Glushenkov and contributed by Codedgers, Inc. Old llvmc will be removed soon after new one will have all its properties. llvm-svn: 48699
* split enum emission out from InstrInfoEmitter into it's own tblgen backend.Chris Lattner2008-01-061-1/+2
| | | | llvm-svn: 45640
* remove attributions from utils.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45419
* Rewrite the tblgen parser in a recursive descent style, eliminating the ↵Chris Lattner2007-11-221-6/+27
| | | | | | | | | | | | bison parser. This makes the parser much easier to understand, eliminates a ton of global variables, and gives tblgen nice caret diagnostics. It is also faster, but tblgen probably doesn't care about performance. There are a couple of FIXMEs which I will take care of next. llvm-svn: 44274
* reapplyChris Lattner2007-02-271-1/+7
| | | | llvm-svn: 34697
* Backing outEvan Cheng2007-02-271-7/+1
| | | | | | | | | | CodeGenTarget.cpp updated: 1.82 -> 1.83 Record.cpp updated: 1.55 -> 1.56 Record.h updated: 1.59 -> 1.60 TableGen.cpp updated: 1.47 -> 1.48 It's missing CallingConvEmitter.h llvm-svn: 34693
* initial support for calling convention generation, still unfinished.Chris Lattner2007-02-271-1/+7
| | | | llvm-svn: 34682
* What should be the last unnecessary <iostream>s in the library.Bill Wendling2006-12-071-7/+8
| | | | llvm-svn: 32333
* remove a bunch of long-dead testing codeChris Lattner2006-03-031-331/+1
| | | | llvm-svn: 26497
* initial implementation of intrinsic parsingChris Lattner2006-03-031-0/+7
| | | | llvm-svn: 26495
* Add support for "-Ifoo" in addition to "-I foo"Chris Lattner2006-03-031-1/+1
| | | | llvm-svn: 26487
* add support for multiple include directoriesChris Lattner2006-03-031-5/+5
| | | | llvm-svn: 26485
* more standards-compliance stuffDuraid Madina2005-12-261-0/+1
| | | | llvm-svn: 25014
* Remove the obsolete instr selector emitterChris Lattner2005-10-231-7/+1
| | | | llvm-svn: 23894
* Plugin new subtarget backend into the build.Jim Laskey2005-10-211-0/+7
| | | | llvm-svn: 23870
* Add an option and stuff implementation of a dag isel emitterChris Lattner2005-09-031-0/+7
| | | | llvm-svn: 23236
* Eliminate tabs and trailing spacesJeff Cohen2005-04-221-47/+47
| | | | llvm-svn: 21441
* Remove trailing whitespaceMisha Brukman2005-04-221-12/+12
| | | | llvm-svn: 21428
* Fix usage of changed function prototypeReid Spencer2004-11-141-1/+1
| | | | llvm-svn: 17798
* Make tblgen's exception handling a little more robust by printing theReid Spencer2004-09-031-1/+8
| | | | | | program name and also catching ... llvm-svn: 16160
* Changes For Bug 352Reid Spencer2004-09-011-2/+2
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* RemoveFileOnErrorSignal is now in the llvm::sys namespace. AdjustReid Spencer2004-08-291-1/+1
| | | | | | accordingly. llvm-svn: 16093
* Initial cut at an asm writer emitter. So far, this only handles emission ofChris Lattner2004-08-011-1/+9
| | | | | | instructions, and only instructions that take no operands at that! llvm-svn: 15386
* Finegrainify namespacificationChris Lattner2004-08-011-9/+6
| | | | llvm-svn: 15381
* Remove some abandoned code that was never finished. If needed in the futureChris Lattner2004-07-221-7/+1
| | | | | | it can be ressurected from CVS. llvm-svn: 15113
* Passing integer 0 in for a pointer value doesn't work on IA64. Fix thisChris Lattner2004-07-161-1/+1
| | | | | | by using a new macro. llvm-svn: 14863
* Make tblgen not try to be smart. This is better handled in makefiles ifChris Lattner2004-07-131-14/+3
| | | | | | at all. Patch contributed by Vladimir Prus! llvm-svn: 14784
* Header file movedChris Lattner2004-05-271-1/+1
| | | | llvm-svn: 13813
* add tablgen backend for really simple instruction selectorJakub Staszak2004-04-061-1/+7
| | | | llvm-svn: 12712
* exit(1) instead of abort()'ing on errorChris Lattner2004-02-131-2/+2
| | | | llvm-svn: 11380
* Print the record NAME not the record ADDRESSChris Lattner2004-02-061-1/+1
| | | | llvm-svn: 11144
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+10
| | | | llvm-svn: 9903
OpenPOWER on IntegriCloud