From 82fe79357f54d4db4c4e2c46bbfbd4345022ae22 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 16 Aug 2024 08:43:02 -0700 Subject: [PATCH] [gn] Port AST/ByteCode #104552 --- .../utils/gn/secondary/clang/lib/AST/BUILD.gn | 52 +++++++++---------- .../AST/{Interp => ByteCode}/BUILD.gn | 0 .../gn/secondary/clang/unittests/BUILD.gn | 2 +- 3 files changed, 27 insertions(+), 27 deletions(-) rename llvm/utils/gn/secondary/clang/unittests/AST/{Interp => ByteCode}/BUILD.gn (100%) diff --git a/llvm/utils/gn/secondary/clang/lib/AST/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/AST/BUILD.gn index 1708af8612bc..1dd34f2a077b 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 8b98e3beec28..a6a4a5708341 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",