[x86] fix assert with horizontal math + broadcast of vector (PR43402)
[llvm-core.git] / lib / CodeGen / AsmPrinter / WinCFGuard.h
blobdef0a59ab0075d0e0fcbc2a34a3065e4a1e7e0fb
1 //===-- WinCFGuard.h - Windows Control Flow Guard Handling ----*- 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 //===----------------------------------------------------------------------===//
8 //
9 // This file contains support for writing windows exception info into asm files.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_WINCFGUARD_H
14 #define LLVM_LIB_CODEGEN_ASMPRINTER_WINCFGUARD_H
16 #include "llvm/CodeGen/AsmPrinterHandler.h"
17 #include "llvm/Support/Compiler.h"
19 namespace llvm {
21 class LLVM_LIBRARY_VISIBILITY WinCFGuard : public AsmPrinterHandler {
22 /// Target of directive emission.
23 AsmPrinter *Asm;
25 public:
26 WinCFGuard(AsmPrinter *A);
27 ~WinCFGuard() override;
29 void setSymbolSize(const MCSymbol *Sym, uint64_t Size) override {}
31 /// Emit the Control Flow Guard function ID table
32 void endModule() override;
34 /// Gather pre-function debug information.
35 /// Every beginFunction(MF) call should be followed by an endFunction(MF)
36 /// call.
37 void beginFunction(const MachineFunction *MF) override {}
39 /// Gather post-function debug information.
40 /// Please note that some AsmPrinter implementations may not call
41 /// beginFunction at all.
42 void endFunction(const MachineFunction *MF) override {}
44 /// Process beginning of an instruction.
45 void beginInstruction(const MachineInstr *MI) override {}
47 /// Process end of an instruction.
48 void endInstruction() override {}
51 } // namespace llvm
53 #endif