LLVM 22.0.0git
LowerVectorIntrinsics.h
Go to the documentation of this file.
1//===- llvm/Transforms/Utils/LowerVectorIntrinsics.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//===----------------------------------------------------------------------===//
8//
9// Lower intrinsics with a scalable vector arg to loops.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_TRANSFORMS_UTILS_LOWERVECTORINTRINSICS_H
14#define LLVM_TRANSFORMS_UTILS_LOWERVECTORINTRINSICS_H
15
16#include <cstdint>
17#include <optional>
18
19namespace llvm {
20
21class CallInst;
22class Module;
23
24/// Lower \p CI as a loop. \p CI is a unary intrinsic with a vector argument and
25/// is deleted and replaced with a loop.
27
28} // namespace llvm
29
30#endif
This class represents a function call, abstracting a target machine's calling convention.
A Module instance is used to store all the information related to an LLVM module.
Definition Module.h:67
This is an optimization pass for GlobalISel generic memory operations.
bool lowerUnaryVectorIntrinsicAsLoop(Module &M, CallInst *CI)
Lower CI as a loop.