LLVMのmerge

LLVMのmerge

# とりあえずCbCがあるファイルを探す

ripgrepでcpp, c, hなファイルを検索してperlで整形する

  • 変更先は先頭のtoolsが抜けている可能性が高いのでs/^tools\///;している
1
rg -t cpp 'CbC' -c  | perl -lne 's/^tools\///; s/:\d+$//; print '  > tmp

# 検索結果

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
include/llvm/LinkAllPasses.h
lib/IR/Core.cpp
lib/IR/LLVMContextImpl.cpp
lib/IR/ValueTypes.cpp
lib/CodeGen/TargetPassConfig.cpp
lib/IR/AsmWriter.cpp
lib/IR/LLVMContextImpl.h
lib/IR/Type.cpp
include/llvm/Target/TargetOptions.h
include/llvm/IR/Type.h
include/llvm/IR/IRBuilder.h
include/llvm/Transforms/Scalar.h
include/llvm/CodeGen/TargetPassConfig.h
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
lib/Target/NVPTX/NVPTXISelLowering.cpp
lib/Target/XCore/XCoreISelLowering.cpp
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
lib/ExecutionEngine/MCJIT/MCJIT.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/Transforms/IPO/PassManagerBuilder.cpp
lib/Transforms/Utils/FunctionComparator.cpp
lib/Transforms/Scalar/Scalar.cpp
lib/Transforms/Scalar/SROA.cpp
lib/Transforms/Scalar/TailRecursionElimination.cpp
clang/tools/libclang/CIndex.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
clang/test/SemaCXX/crashes.cpp
clang/lib/Lex/Preprocessor.cpp
clang/lib/Analysis/FormatString.cpp
clang/lib/Lex/PPDirectives.cpp
clang/lib/Lex/Lexer.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Lex/PPLexerChange.cpp
clang/lib/Frontend/FrontendOptions.cpp
clang/lib/Driver/Types.cpp
clang/lib/Serialization/ASTCommon.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Parse/ParseCbC.cpp
clang/lib/Parse/ParseExpr.cpp
clang/lib/Parse/CbCHelper.h
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseStmt.cpp
clang/lib/Parse/Parser.cpp
clang/lib/Parse/ParseTentative.cpp
clang/lib/Sema/SemaTemplateVariadic.cpp
clang/lib/Sema/SemaType.cpp
clang/lib/Sema/DeclSpec.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/CodeGen/CodeGenTypes.cpp
clang/lib/CodeGen/CGCleanup.cpp
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/AST/TypeLoc.cpp
clang/lib/AST/ItaniumMangle.cpp
clang/lib/AST/NSAPI.cpp
clang/lib/AST/ASTContext.cpp
clang/lib/AST/MicrosoftMangle.cpp
clang/lib/AST/Type.cpp
clang/lib/Index/USRGeneration.cpp
clang/include/clang/Lex/Lexer.h
clang/include/clang/Lex/Preprocessor.h
clang/include/clang/Parse/Parser.h
clang/include/clang/Serialization/ASTBitCodes.h
clang/include/clang/Sema/DeclSpec.h
clang/include/clang/AST/ASTContext.h
clang/include/clang/AST/Type.h
clang/include/clang/AST/CanonicalType.h
clang/include/clang/Basic/Specifiers.h

# 今のバージョンにあるファイル

Perlで探す

cat ../cbc_llvm_tmp/tmp | perl -lne 'if (-f ) { print }' > found.txt

# 検索結果

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
clang/tools/libclang/CIndex.cpp
clang/test/SemaCXX/crashes.cpp
clang/lib/Lex/Preprocessor.cpp
clang/lib/Lex/PPDirectives.cpp
clang/lib/Lex/Lexer.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Lex/PPLexerChange.cpp
clang/lib/Frontend/FrontendOptions.cpp
clang/lib/Driver/Types.cpp
clang/lib/Serialization/ASTCommon.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Parse/ParseExpr.cpp
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseStmt.cpp
clang/lib/Parse/Parser.cpp
clang/lib/Parse/ParseTentative.cpp
clang/lib/Sema/SemaTemplateVariadic.cpp
clang/lib/Sema/SemaType.cpp
clang/lib/Sema/DeclSpec.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/CodeGen/CodeGenTypes.cpp
clang/lib/CodeGen/CGCleanup.cpp
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/AST/TypeLoc.cpp
clang/lib/AST/ItaniumMangle.cpp
clang/lib/AST/NSAPI.cpp
clang/lib/AST/ASTContext.cpp
clang/lib/AST/MicrosoftMangle.cpp
clang/lib/AST/Type.cpp
clang/lib/Index/USRGeneration.cpp
clang/include/clang/Lex/Lexer.h
clang/include/clang/Lex/Preprocessor.h
clang/include/clang/Parse/Parser.h
clang/include/clang/Serialization/ASTBitCodes.h
clang/include/clang/Sema/DeclSpec.h
clang/include/clang/AST/ASTContext.h
clang/include/clang/AST/Type.h
clang/include/clang/AST/CanonicalType.h
clang/include/clang/Basic/Specifiers.h

# 今のバージョンにないファイル

cat ../cbc_llvm_tmp/tmp | perl -lne 'if (!-f ) { print }' > no_found.txt

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
include/llvm/LinkAllPasses.h
lib/IR/Core.cpp
lib/IR/LLVMContextImpl.cpp
lib/IR/ValueTypes.cpp
lib/CodeGen/TargetPassConfig.cpp
lib/IR/AsmWriter.cpp
lib/IR/LLVMContextImpl.h
lib/IR/Type.cpp
include/llvm/Target/TargetOptions.h
include/llvm/IR/Type.h
include/llvm/IR/IRBuilder.h
include/llvm/Transforms/Scalar.h
include/llvm/CodeGen/TargetPassConfig.h
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
lib/Target/NVPTX/NVPTXISelLowering.cpp
lib/Target/XCore/XCoreISelLowering.cpp
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
lib/ExecutionEngine/MCJIT/MCJIT.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/Transforms/IPO/PassManagerBuilder.cpp
lib/Transforms/Utils/FunctionComparator.cpp
lib/Transforms/Scalar/Scalar.cpp
lib/Transforms/Scalar/SROA.cpp
lib/Transforms/Scalar/TailRecursionElimination.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
clang/lib/Analysis/FormatString.cpp
clang/lib/Parse/ParseCbC.cpp
clang/lib/Parse/CbCHelper.h

# 発見できなったのはこれっぽい

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
llvm/include/llvm/LinkAllPasses.h
llvm/lib/IR/Core.cpp
llvm/lib/IR/LLVMContextImpl.cpp
llvm/lib/IR/ValueTypes.cpp
llvm/lib/CodeGen/TargetPassConfig.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/LLVMContextImpl.h
llvm/lib/IR/Type.cpp
llvm/include/llvm/Target/TargetOptions.h
llvm/include/llvm/IR/Type.h
llvm/include/llvm/IR/IRBuilder.h
llvm/include/llvm/Transforms/Scalar.h
llvm/include/llvm/CodeGen/TargetPassConfig.h
llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
llvm/lib/Target/XCore/XCoreISelLowering.cpp
llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/lib/Transforms/Utils/FunctionComparator.cpp
llvm/lib/Transforms/Scalar/Scalar.cpp
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/clang/lib/Analysis/FormatString.cpp
llvm/clang/lib/Parse/ParseCbC.cpp
llvm/clang/lib/Parse/CbCHelper.h
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy