Ramkumar Ramachandra
2012-Nov-13 16:02 UTC
[LLVMdev] [PATCH] .gitignore: add rules for a clean worktree
Add several .gitignore rules to various directories to ensure a clean worktree after a default build. Signed-off-by: Ramkumar Ramachandra <artagnon at gmail.com> --- Just cloned and built LLVM. This annoyed me. Here's a trivial patch. .gitignore | 10 ++++++++++ bindings/ocaml/llvm/.gitignore | 1 + docs/.gitignore | 1 + include/llvm/.gitignore | 1 + include/llvm/Config/.gitignore | 6 ++++++ include/llvm/Support/.gitignore | 1 + lib/Target/ARM/.gitignore | 13 +++++++++++++ lib/Target/CellSPU/.gitignore | 7 +++++++ lib/Target/Hexagon/.gitignore | 7 +++++++ lib/Target/MBlaze/.gitignore | 10 ++++++++++ lib/Target/MSP430/.gitignore | 6 ++++++ lib/Target/Mips/.gitignore | 12 ++++++++++++ lib/Target/NVPTX/.gitignore | 5 +++++ lib/Target/PowerPC/.gitignore | 8 ++++++++ lib/Target/Sparc/.gitignore | 6 ++++++ lib/Target/X86/.gitignore | 11 +++++++++++ lib/Target/XCore/.gitignore | 6 ++++++ projects/sample/.gitignore | 4 ++++ tools/llvm-config/.gitignore | 1 + unittests/ExecutionEngine/JIT/.gitignore | 2 ++ 20 files changed, 118 insertions(+), 0 deletions(-) create mode 100644 bindings/ocaml/llvm/.gitignore create mode 100644 docs/.gitignore create mode 100644 include/llvm/.gitignore create mode 100644 include/llvm/Config/.gitignore create mode 100644 include/llvm/Support/.gitignore create mode 100644 lib/Target/ARM/.gitignore create mode 100644 lib/Target/CellSPU/.gitignore create mode 100644 lib/Target/Hexagon/.gitignore create mode 100644 lib/Target/MBlaze/.gitignore create mode 100644 lib/Target/MSP430/.gitignore create mode 100644 lib/Target/Mips/.gitignore create mode 100644 lib/Target/NVPTX/.gitignore create mode 100644 lib/Target/PowerPC/.gitignore create mode 100644 lib/Target/Sparc/.gitignore create mode 100644 lib/Target/X86/.gitignore create mode 100644 lib/Target/XCore/.gitignore create mode 100644 projects/sample/.gitignore create mode 100644 tools/llvm-config/.gitignore create mode 100644 unittests/ExecutionEngine/JIT/.gitignore diff --git a/.gitignore b/.gitignore index 2462830..7ad44f3 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ #==============================================================================# # Temp files created by most text editors. *~ +\#* # Merge files created by git. *.orig # Byte compiled python modules. @@ -29,10 +30,19 @@ cscope.out autoconf/aclocal.m4 autoconf/autom4te.cache compile_commands.json +Makefile.config +Makefile.llvmbuild +llvm.spec +config.log +config.status #==============================================================================# # Directories to ignore (do not add trailing '/'s, they skip symlinks). #==============================================================================# +# Debug+Asserts build +Debug+Asserts +# Release+Asserts build +Release+Asserts # External projects that are tracked independently. projects/* !projects/sample diff --git a/bindings/ocaml/llvm/.gitignore b/bindings/ocaml/llvm/.gitignore new file mode 100644 index 0000000..3244114 --- /dev/null +++ b/bindings/ocaml/llvm/.gitignore @@ -0,0 +1 @@ +META.llvm diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 0000000..f3ac818 --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1 @@ +doxygen.cfg diff --git a/include/llvm/.gitignore b/include/llvm/.gitignore new file mode 100644 index 0000000..ae4b6a8 --- /dev/null +++ b/include/llvm/.gitignore @@ -0,0 +1 @@ +Intrinsics.gen diff --git a/include/llvm/Config/.gitignore b/include/llvm/Config/.gitignore new file mode 100644 index 0000000..510df34 --- /dev/null +++ b/include/llvm/Config/.gitignore @@ -0,0 +1,6 @@ +AsmParsers.def +AsmPrinters.def +Disassemblers.def +Targets.def +config.h +llvm-config.h diff --git a/include/llvm/Support/.gitignore b/include/llvm/Support/.gitignore new file mode 100644 index 0000000..1025214 --- /dev/null +++ b/include/llvm/Support/.gitignore @@ -0,0 +1 @@ +DataTypes.h diff --git a/lib/Target/ARM/.gitignore b/lib/Target/ARM/.gitignore new file mode 100644 index 0000000..885bdf1 --- /dev/null +++ b/lib/Target/ARM/.gitignore @@ -0,0 +1,13 @@ +ARMGenAsmMatcher.inc +ARMGenAsmWriter.inc +ARMGenCallingConv.inc +ARMGenCodeEmitter.inc +ARMGenDAGISel.inc +ARMGenEDInfo.inc +ARMGenFastISel.inc +ARMGenInstrInfo.inc +ARMGenMCCodeEmitter.inc +ARMGenMCPseudoLowering.inc +ARMGenRegisterInfo.inc +ARMGenSubtargetInfo.inc +ARMGenDisassemblerTables.inc diff --git a/lib/Target/CellSPU/.gitignore b/lib/Target/CellSPU/.gitignore new file mode 100644 index 0000000..6d3f2d2 --- /dev/null +++ b/lib/Target/CellSPU/.gitignore @@ -0,0 +1,7 @@ +SPUGenAsmWriter.inc +SPUGenCallingConv.inc +SPUGenCodeEmitter.inc +SPUGenDAGISel.inc +SPUGenInstrInfo.inc +SPUGenRegisterInfo.inc +SPUGenSubtargetInfo.inc diff --git a/lib/Target/Hexagon/.gitignore b/lib/Target/Hexagon/.gitignore new file mode 100644 index 0000000..dc7c3b0 --- /dev/null +++ b/lib/Target/Hexagon/.gitignore @@ -0,0 +1,7 @@ +HexagonGenAsmWriter.inc +HexagonGenCallingConv.inc +HexagonGenDAGISel.inc +HexagonGenDFAPacketizer.inc +HexagonGenInstrInfo.inc +HexagonGenRegisterInfo.inc +HexagonGenSubtargetInfo.inc diff --git a/lib/Target/MBlaze/.gitignore b/lib/Target/MBlaze/.gitignore new file mode 100644 index 0000000..abe3246 --- /dev/null +++ b/lib/Target/MBlaze/.gitignore @@ -0,0 +1,10 @@ +MBlazeGenAsmMatcher.inc +MBlazeGenAsmWriter.inc +MBlazeGenCallingConv.inc +MBlazeGenCodeEmitter.inc +MBlazeGenDAGISel.inc +MBlazeGenEDInfo.inc +MBlazeGenInstrInfo.inc +MBlazeGenIntrinsics.inc +MBlazeGenRegisterInfo.inc +MBlazeGenSubtargetInfo.inc diff --git a/lib/Target/MSP430/.gitignore b/lib/Target/MSP430/.gitignore new file mode 100644 index 0000000..28ae91b --- /dev/null +++ b/lib/Target/MSP430/.gitignore @@ -0,0 +1,6 @@ +MSP430GenAsmWriter.inc +MSP430GenCallingConv.inc +MSP430GenDAGISel.inc +MSP430GenInstrInfo.inc +MSP430GenRegisterInfo.inc +MSP430GenSubtargetInfo.inc diff --git a/lib/Target/Mips/.gitignore b/lib/Target/Mips/.gitignore new file mode 100644 index 0000000..27c073c --- /dev/null +++ b/lib/Target/Mips/.gitignore @@ -0,0 +1,12 @@ +MipsGenAsmMatcher.inc +MipsGenAsmWriter.inc +MipsGenCallingConv.inc +MipsGenCodeEmitter.inc +MipsGenDAGISel.inc +MipsGenDisassemblerTables.inc +MipsGenEDInfo.inc +MipsGenInstrInfo.inc +MipsGenMCCodeEmitter.inc +MipsGenMCPseudoLowering.inc +MipsGenRegisterInfo.inc +MipsGenSubtargetInfo.inc diff --git a/lib/Target/NVPTX/.gitignore b/lib/Target/NVPTX/.gitignore new file mode 100644 index 0000000..74001d1 --- /dev/null +++ b/lib/Target/NVPTX/.gitignore @@ -0,0 +1,5 @@ +NVPTXGenAsmWriter.inc +NVPTXGenDAGISel.inc +NVPTXGenInstrInfo.inc +NVPTXGenRegisterInfo.inc +NVPTXGenSubtargetInfo.inc diff --git a/lib/Target/PowerPC/.gitignore b/lib/Target/PowerPC/.gitignore new file mode 100644 index 0000000..77c439b --- /dev/null +++ b/lib/Target/PowerPC/.gitignore @@ -0,0 +1,8 @@ +PPCGenAsmWriter.inc +PPCGenCallingConv.inc +PPCGenCodeEmitter.inc +PPCGenDAGISel.inc +PPCGenInstrInfo.inc +PPCGenMCCodeEmitter.inc +PPCGenRegisterInfo.inc +PPCGenSubtargetInfo.inc diff --git a/lib/Target/Sparc/.gitignore b/lib/Target/Sparc/.gitignore new file mode 100644 index 0000000..3708810 --- /dev/null +++ b/lib/Target/Sparc/.gitignore @@ -0,0 +1,6 @@ +SparcGenAsmWriter.inc +SparcGenCallingConv.inc +SparcGenDAGISel.inc +SparcGenInstrInfo.inc +SparcGenRegisterInfo.inc +SparcGenSubtargetInfo.inc diff --git a/lib/Target/X86/.gitignore b/lib/Target/X86/.gitignore new file mode 100644 index 0000000..13e4a62 --- /dev/null +++ b/lib/Target/X86/.gitignore @@ -0,0 +1,11 @@ +X86GenAsmMatcher.inc +X86GenAsmWriter.inc +X86GenAsmWriter1.inc +X86GenCallingConv.inc +X86GenDAGISel.inc +X86GenDisassemblerTables.inc +X86GenEDInfo.inc +X86GenFastISel.inc +X86GenInstrInfo.inc +X86GenRegisterInfo.inc +X86GenSubtargetInfo.inc diff --git a/lib/Target/XCore/.gitignore b/lib/Target/XCore/.gitignore new file mode 100644 index 0000000..9541ccb --- /dev/null +++ b/lib/Target/XCore/.gitignore @@ -0,0 +1,6 @@ +XCoreGenAsmWriter.inc +XCoreGenCallingConv.inc +XCoreGenDAGISel.inc +XCoreGenInstrInfo.inc +XCoreGenRegisterInfo.inc +XCoreGenSubtargetInfo.inc diff --git a/projects/sample/.gitignore b/projects/sample/.gitignore new file mode 100644 index 0000000..be7f5ff --- /dev/null +++ b/projects/sample/.gitignore @@ -0,0 +1,4 @@ +Makefile.common +Makefile.llvm.config +config.log +config.status diff --git a/tools/llvm-config/.gitignore b/tools/llvm-config/.gitignore new file mode 100644 index 0000000..6e2f8b4 --- /dev/null +++ b/tools/llvm-config/.gitignore @@ -0,0 +1 @@ +LibraryDependencies.inc diff --git a/unittests/ExecutionEngine/JIT/.gitignore b/unittests/ExecutionEngine/JIT/.gitignore new file mode 100644 index 0000000..0f84574 --- /dev/null +++ b/unittests/ExecutionEngine/JIT/.gitignore @@ -0,0 +1,2 @@ +.dir +JITTests.exports -- 1.7.8.1.362.g5d6df.dirty
Dmitri Gribenko
2012-Nov-13 16:15 UTC
[LLVMdev] [PATCH] .gitignore: add rules for a clean worktree
On Tue, Nov 13, 2012 at 6:02 PM, Ramkumar Ramachandra <artagnon at gmail.com> wrote:> Add several .gitignore rules to various directories to ensure a clean > worktree after a default build.Hi, These gitignore lists require maintenance. Is is possible to express the same set of filenames as patterns like '*.inc' in the root gitigrore file, so that adding/removing a new generated file does not require updating gitignore? Dmitri -- main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
Ramkumar Ramachandra
2012-Nov-13 16:34 UTC
[LLVMdev] [PATCH] .gitignore: add rules for a clean worktree
Hi Dmitri, Dmitri Gribenko wrote:> On Tue, Nov 13, 2012 at 6:02 PM, Ramkumar Ramachandra > <artagnon at gmail.com> wrote: >> Add several .gitignore rules to various directories to ensure a clean >> worktree after a default build. > > Hi, > > These gitignore lists require maintenance. Is is possible to express > the same set of filenames as patterns like '*.inc' in the root > gitigrore file, so that adding/removing a new generated file does not > require updating gitignore?That's a valid concern, but there are plenty of *.inc files that aren't meant to be ignored; for example lib/Support/Unix/Host.inc. I can't think of any other patterns that would further simplify my patch. Also, it's idiomatic to use a per-directory .gitignore rather than one toplevel .gitignore. Ram
Possibly Parallel Threads
- [LLVMdev] [PATCH] .gitignore: add rules for a clean worktree
- [LLVMdev] [PATCH] .gitignore: add rules for a clean worktree
- [LLVMdev] [PATCH] .gitignore: add rules for a clean worktree
- [LLVMdev] [PATCH] .gitignore: add rules for a clean worktree
- [LLVMdev] Sporadic "RealOffset <= INT32_MAX && RealOffset >= INT32_MIN" failures with MCJIT on Windows