[llvm] 82fe793 - [gn] Port AST/ByteCode #104552

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 08:43:12 PDT 2024


Author: Fangrui Song
Date: 2024-08-16T08:43:02-07:00
New Revision: 82fe79357f54d4db4c4e2c46bbfbd4345022ae22

URL: https://github.com/llvm/llvm-project/commit/82fe79357f54d4db4c4e2c46bbfbd4345022ae22
DIFF: https://github.com/llvm/llvm-project/commit/82fe79357f54d4db4c4e2c46bbfbd4345022ae22.diff

LOG: [gn] Port AST/ByteCode #104552

Added: 
    llvm/utils/gn/secondary/clang/unittests/AST/ByteCode/BUILD.gn

Modified: 
    llvm/utils/gn/secondary/clang/lib/AST/BUILD.gn
    llvm/utils/gn/secondary/clang/unittests/BUILD.gn

Removed: 
    llvm/utils/gn/secondary/clang/unittests/AST/Interp/BUILD.gn


################################################################################
diff  --git a/llvm/utils/gn/secondary/clang/lib/AST/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/AST/BUILD.gn
index 1708af8612bc28..1dd34f2a077bc5 100644
--- a/llvm/utils/gn/secondary/clang/lib/AST/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/AST/BUILD.gn
@@ -3,7 +3,7 @@ import("//clang/utils/TableGen/clang_tablegen.gni")
 clang_tablegen("Opcodes") {
   visibility = [ ":AST" ]
   args = [ "-gen-clang-opcodes" ]
-  td_file = "Interp/Opcodes.td"
+  td_file = "ByteCode/Opcodes.td"
 }
 
 clang_tablegen("AttrDocTable") {
@@ -92,31 +92,31 @@ static_library("AST") {
     "ExternalASTSource.cpp",
     "FormatString.cpp",
     "InheritViz.cpp",
-    "Interp/ByteCodeEmitter.cpp",
-    "Interp/Compiler.cpp",
-    "Interp/Context.cpp",
-    "Interp/Descriptor.cpp",
-    "Interp/Disasm.cpp",
-    "Interp/DynamicAllocator.cpp",
-    "Interp/EvalEmitter.cpp",
-    "Interp/EvaluationResult.cpp",
-    "Interp/Floating.cpp",
-    "Interp/Frame.cpp",
-    "Interp/Function.cpp",
-    "Interp/Interp.cpp",
-    "Interp/InterpBlock.cpp",
-    "Interp/InterpBuiltin.cpp",
-    "Interp/InterpFrame.cpp",
-    "Interp/InterpShared.cpp",
-    "Interp/InterpStack.cpp",
-    "Interp/InterpState.cpp",
-    "Interp/MemberPointer.cpp",
-    "Interp/Pointer.cpp",
-    "Interp/PrimType.cpp",
-    "Interp/Program.cpp",
-    "Interp/Record.cpp",
-    "Interp/Source.cpp",
-    "Interp/State.cpp",
+    "ByteCode/ByteCodeEmitter.cpp",
+    "ByteCode/Compiler.cpp",
+    "ByteCode/Context.cpp",
+    "ByteCode/Descriptor.cpp",
+    "ByteCode/Disasm.cpp",
+    "ByteCode/DynamicAllocator.cpp",
+    "ByteCode/EvalEmitter.cpp",
+    "ByteCode/EvaluationResult.cpp",
+    "ByteCode/Floating.cpp",
+    "ByteCode/Frame.cpp",
+    "ByteCode/Function.cpp",
+    "ByteCode/Interp.cpp",
+    "ByteCode/InterpBlock.cpp",
+    "ByteCode/InterpBuiltin.cpp",
+    "ByteCode/InterpFrame.cpp",
+    "ByteCode/InterpShared.cpp",
+    "ByteCode/InterpStack.cpp",
+    "ByteCode/InterpState.cpp",
+    "ByteCode/MemberPointer.cpp",
+    "ByteCode/Pointer.cpp",
+    "ByteCode/PrimType.cpp",
+    "ByteCode/Program.cpp",
+    "ByteCode/Record.cpp",
+    "ByteCode/Source.cpp",
+    "ByteCode/State.cpp",
     "ItaniumCXXABI.cpp",
     "ItaniumMangle.cpp",
     "JSONNodeDumper.cpp",

diff  --git a/llvm/utils/gn/secondary/clang/unittests/AST/Interp/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/AST/ByteCode/BUILD.gn
similarity index 100%
rename from llvm/utils/gn/secondary/clang/unittests/AST/Interp/BUILD.gn
rename to llvm/utils/gn/secondary/clang/unittests/AST/ByteCode/BUILD.gn

diff  --git a/llvm/utils/gn/secondary/clang/unittests/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/BUILD.gn
index 8b98e3beec284d..a6a4a5708341f0 100644
--- a/llvm/utils/gn/secondary/clang/unittests/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/unittests/BUILD.gn
@@ -3,7 +3,7 @@ import("//clang/lib/StaticAnalyzer/Frontend/enable.gni")
 group("unittests") {
   deps = [
     "AST:ASTTests",
-    "AST/Interp:InterpTests",
+    "AST/ByteCode:InterpTests",
     "ASTMatchers:ASTMatchersTests",
     "ASTMatchers/Dynamic:DynamicASTMatchersTests",
     "Basic:BasicTests",


        


More information about the llvm-commits mailing list