[SLP][REVEC] The vectorized result for ShuffleVector may not be ShuffleVectorInst...
[llvm-project.git] / lld / ELF / ScriptParser.h
blob3af4fa3ea65f70896e3a07ba4377b0a355fae534
1 //===- ScriptParser.h -------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLD_ELF_SCRIPT_PARSER_H
10 #define LLD_ELF_SCRIPT_PARSER_H
12 #include "lld/Common/LLVM.h"
13 #include "llvm/Support/MemoryBufferRef.h"
15 namespace lld::elf {
16 struct Ctx;
18 // Parses a linker script. Calling this function updates
19 // lld::elf::config and lld::elf::script.
20 void readLinkerScript(Ctx &ctx, MemoryBufferRef mb);
22 // Parses a version script.
23 void readVersionScript(Ctx &ctx, MemoryBufferRef mb);
25 void readDynamicList(Ctx &ctx, MemoryBufferRef mb);
27 // Parses the defsym expression.
28 void readDefsym(Ctx &ctx, MemoryBufferRef mb);
30 bool hasWildcard(StringRef s);
32 } // namespace lld::elf
34 #endif