LLVM: lib/Transforms/Utils/LowerIFunc.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

17

18using namespace llvm;

19

20

22 if (M.ifunc_empty())

24

27}

Module.h This file contains the declarations for the Module class.

PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)

Replace all call users of ifuncs in the module.

Definition LowerIFunc.cpp:21

A Module instance is used to store all the information related to an LLVM module.

A set of analyses that are preserved following a run of a transformation pass.

static PreservedAnalyses none()

Convenience factory function for the empty preserved set.

static PreservedAnalyses all()

Construct a special preserved set that preserves all passes.

This is an optimization pass for GlobalISel generic memory operations.

LLVM_ABI bool lowerGlobalIFuncUsersAsGlobalCtor(Module &M, ArrayRef< GlobalIFunc * > IFuncsToLower={})

Lower all calls to ifuncs by replacing uses with indirect calls loaded out of a global table initiali...

AnalysisManager< Module > ModuleAnalysisManager

Convenience typedef for the Module analysis manager.