[SampleProfileLoader] Fix integer overflow in generateMDProfMetadata (#90217)
[llvm-project.git] / llvm / lib / Target / AArch64 / AArch64ExpandImm.h
blob42c97d2c3e9b539e53f7cd8e486298455b683657
1 //===- AArch64ExpandImm.h - AArch64 Immediate Expansion ---------*- 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 the AArch64 immediate expansion stuff.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64EXPANDIMM_H
14 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64EXPANDIMM_H
16 #include "llvm/ADT/SmallVector.h"
18 namespace llvm {
20 namespace AArch64_IMM {
22 struct ImmInsnModel {
23 unsigned Opcode;
24 uint64_t Op1;
25 uint64_t Op2;
28 void expandMOVImm(uint64_t Imm, unsigned BitSize,
29 SmallVectorImpl<ImmInsnModel> &Insn);
31 } // end namespace AArch64_IMM
33 } // end namespace llvm
35 #endif