//===- X86InstrFMA3Info.h - X86 FMA3 Instruction Information ----*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file contains the implementation of the classes providing information // about existing X86 FMA3 opcodes, classifying and grouping them. // //===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TARGET_X86_UTILS_X86INSTRFMA3INFO_H #define LLVM_LIB_TARGET_X86_UTILS_X86INSTRFMA3INFO_H #include <cstdint> namespace llvm { /// This class is used to group {132, 213, 231} forms of FMA opcodes together. /// Each of the groups has either 3 opcodes, Also, each group has an attributes /// field describing it. struct X86InstrFMA3Group { … }; /// Returns a reference to a group of FMA3 opcodes to where the given /// \p Opcode is included. If the given \p Opcode is not recognized as FMA3 /// and not included into any FMA3 group, then nullptr is returned. const X86InstrFMA3Group *getFMA3Group(unsigned Opcode, uint64_t TSFlags); } // end namespace llvm #endif // LLVM_LIB_TARGET_X86_UTILS_X86INSTRFMA3INFO_H