Skip to content

Commit 403cea0

Browse files
author
Andy Kaylor
authored
[NFC] Move FPBuiltinFnSelection pass to Transforms (#14339)
This moves the FPBuiltinFnSelection pass to the llvm/lib/Transforms/Scalar directory. This is needed to enable future changes that will run this pass as part of the main pipeline for device compilation. With this pass in CodeGen, the slibs build would fail.
1 parent 66a0199 commit 403cea0

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

llvm/include/llvm/Passes/CodeGenPassBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include "llvm/CodeGen/DwarfEHPrepare.h"
3030
#include "llvm/CodeGen/ExpandMemCmp.h"
3131
#include "llvm/CodeGen/ExpandReductions.h"
32-
#include "llvm/CodeGen/FPBuiltinFnSelection.h"
3332
#include "llvm/CodeGen/GCMetadata.h"
3433
#include "llvm/CodeGen/GlobalMerge.h"
3534
#include "llvm/CodeGen/IndirectBrExpand.h"
@@ -65,6 +64,7 @@
6564
#include "llvm/Target/TargetMachine.h"
6665
#include "llvm/Transforms/CFGuard.h"
6766
#include "llvm/Transforms/Scalar/ConstantHoisting.h"
67+
#include "llvm/Transforms/Scalar/FPBuiltinFnSelection.h"
6868
#include "llvm/Transforms/Scalar/LoopPassManager.h"
6969
#include "llvm/Transforms/Scalar/LoopStrengthReduce.h"
7070
#include "llvm/Transforms/Scalar/LowerConstantIntrinsics.h"

llvm/include/llvm/CodeGen/FPBuiltinFnSelection.h renamed to llvm/include/llvm/Transforms/Scalar/FPBuiltinFnSelection.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- FPBuiltinFnSelection.h - Pre-ISel intrinsic lowering pass ----------===//
1+
//===- FPBuiltinFnSelection.h - fpbuiltin intrinsic lowering pass ---------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -10,8 +10,8 @@
1010
// llvm.fpbuiltin.* intrinsics.
1111
//
1212
//===----------------------------------------------------------------------===//
13-
#ifndef LLVM_CODEGEN_FPBUILTINFNSELECTION_H
14-
#define LLVM_CODEGEN_FPBUILTINFNSELECTION_H
13+
#ifndef LLVM_TRANSFORMS_SCALAR_FPBUILTINFNSELECTION_H
14+
#define LLVM_TRANSFORMS_SCALAR_FPBUILTINFNSELECTION_H
1515

1616
#include "llvm/IR/PassManager.h"
1717

@@ -25,4 +25,4 @@ struct FPBuiltinFnSelectionPass : PassInfoMixin<FPBuiltinFnSelectionPass> {
2525

2626
} // end namespace llvm
2727

28-
#endif // LLVM_CODEGEN_FPBUILTINFNSELECTION_H
28+
#endif // LLVM_TRANSFORMS_SCALAR_FPBUILTINFNSELECTION_H

llvm/lib/CodeGen/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ add_llvm_component_library(LLVMCodeGen
6363
ExpandVectorPredication.cpp
6464
FaultMaps.cpp
6565
FEntryInserter.cpp
66-
FPBuiltinFnSelection.cpp
6766
FinalizeISel.cpp
6867
FixupStatepointCallerSaved.cpp
6968
FuncletLayout.cpp

llvm/lib/Transforms/Scalar/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ add_llvm_component_library(LLVMScalarOpts
1414
EarlyCSE.cpp
1515
FlattenCFGPass.cpp
1616
Float2Int.cpp
17+
FPBuiltinFnSelection.cpp
1718
GuardWidening.cpp
1819
GVN.cpp
1920
GVNHoist.cpp

llvm/lib/CodeGen/FPBuiltinFnSelection.cpp renamed to llvm/lib/Transforms/Scalar/FPBuiltinFnSelection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- FPBuiltinFnSelection.cpp - Pre-ISel intrinsic lowering pass --------===//
1+
//===- FPBuiltinFnSelection.cpp - fpbuiltin intrinsic lowering pass -------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -11,7 +11,7 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14-
#include "llvm/CodeGen/FPBuiltinFnSelection.h"
14+
#include "llvm/Transforms/Scalar/FPBuiltinFnSelection.h"
1515
#include "llvm/Analysis/TargetLibraryInfo.h"
1616
#include "llvm/Analysis/TargetTransformInfo.h"
1717
#include "llvm/CodeGen/Passes.h"

0 commit comments

Comments
 (0)