LLVM 20.0.0git
ExpandVectorPredication.h
Go to the documentation of this file.
1//===-- ExpandVectorPredication.h - Expand vector predication ---*- 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#ifndef LLVM_CODEGEN_EXPANDVECTORPREDICATION_H
10#define LLVM_CODEGEN_EXPANDVECTORPREDICATION_H
11
12#include "llvm/IR/PassManager.h"
13
14namespace llvm {
15
16class TargetTransformInfo;
17class VPIntrinsic;
18
19/// Represents the details the expansion of a VP intrinsic.
21 /// No change happened during expansion.
23 /// At least one operand was updated.
25 /// The whole intrinsic was replaced.
27};
28
29/// Expand a vector predication intrinsic. Returns the kind of expansion
30/// that was applied to the intrinsic.
33 const TargetTransformInfo &TTI);
34
35} // end namespace llvm
36
37#endif // LLVM_CODEGEN_EXPANDVECTORPREDICATION_H
This header defines various interfaces for pass management in LLVM.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
VPExpansionDetails expandVectorPredicationIntrinsic(VPIntrinsic &VPI, const TargetTransformInfo &TTI)
Expand a vector predication intrinsic.
TargetTransformInfo TTI
VPExpansionDetails
Represents the details the expansion of a VP intrinsic.
@ IntrinsicUnchanged
No change happened during expansion.
@ IntrinsicUpdated
At least one operand was updated.
@ IntrinsicReplaced
The whole intrinsic was replaced.