Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/banach-space/llvm-tutor
/ functions
Functions
96 in github.com/banach-space/llvm-tutor
⨍
Functions
96
◇
Types & classes
23
↓ 3 callers
Function
foo
============================================================================= FILE: input_for_cc.c DESCRIPTION: Sample input file for CallCounter ana
inputs/input_for_cc.c:10
↓ 2 callers
Function
bar
inputs/input_for_cc.c:11
↓ 2 callers
Function
bar
inputs/input_for_hello.c:14
↓ 2 callers
Function
foo
============================================================================= FILE: input_for_hello.c DESCRIPTION: Sample input file for HelloWorld a
inputs/input_for_hello.c:10
↓ 2 callers
Function
getNumNonDbgInstrInBB
Get the number of non-debug instructions in BB
lib/MergeBB.cpp:110
↓ 2 callers
Method
isValid
include/MergeBB.h:76
↓ 2 callers
Function
sqrt
inputs/input_for_fcmp_eq.c:26
↓ 1 callers
Function
CreateGlobalCounter
lib/DynamicCallCounter.cpp:57
↓ 1 callers
Function
convertFCmpEqInstruction
Unnamed namespace for private functions
lib/ConvertFCmpEq.cpp:50
↓ 1 callers
Function
countStaticCalls
===----------------------------------------------------------------------===// static - implementation ===--------------------------------------------
tools/StaticMain.cpp:44
↓ 1 callers
Function
fez
inputs/input_for_cc.c:12
↓ 1 callers
Function
fez
inputs/input_for_hello.c:18
↓ 1 callers
Function
foo
inputs/input_for_mba.c:13
↓ 1 callers
Function
getConvertFCmpEqPluginInfo
----------------------------------------------------------------------------- New PM Registration ----------------------------------------------------
lib/ConvertFCmpEq.cpp:157
↓ 1 callers
Function
getDuplicateBBPluginInfo
------------------------------------------------------------------------------ New PM Registration ---------------------------------------------------
lib/DuplicateBB.cpp:261
↓ 1 callers
Function
getDynamicCallCounterPluginInfo
----------------------------------------------------------------------------- New PM Registration ----------------------------------------------------
lib/DynamicCallCounter.cpp:227
↓ 1 callers
Function
getFindFCmpEqPluginInfo
lib/FindFCmpEq.cpp:109
↓ 1 callers
Function
getHelloWorldPluginInfo
----------------------------------------------------------------------------- New PM Registration ----------------------------------------------------
HelloWorld/HelloWorld.cpp:58
↓ 1 callers
Function
getInjectFuncCallPluginInfo
----------------------------------------------------------------------------- New PM Registration ----------------------------------------------------
lib/InjectFuncCall.cpp:123
↓ 1 callers
Function
getMBAAddPluginInfo
----------------------------------------------------------------------------- New PM Registration ----------------------------------------------------
lib/MBAAdd.cpp:131
↓ 1 callers
Function
getMBASubPluginInfo
----------------------------------------------------------------------------- New PM Registration ----------------------------------------------------
lib/MBASub.cpp:95
↓ 1 callers
Function
getMergeBBPluginInfo
----------------------------------------------------------------------------- New PM Registration ----------------------------------------------------
lib/MergeBB.cpp:266
↓ 1 callers
Function
getOpcodeCounterPluginInfo
----------------------------------------------------------------------------- New PM Registration ----------------------------------------------------
lib/OpcodeCounter.cpp:80
↓ 1 callers
Function
getRIVPluginInfo
lib/RIV.cpp:138
↓ 1 callers
Function
getStaticCallCounterPluginInfo
lib/StaticCallCounter.cpp:90
↓ 1 callers
Function
printFCmpEqInstructions
lib/FindFCmpEq.cpp:48
↓ 1 callers
Function
printOpcodeCounterResult
------------------------------------------------------------------------------ Helper functions - implementation -------------------------------------
lib/OpcodeCounter.cpp:127
↓ 1 callers
Function
printRIVResult
------------------------------------------------------------------------------ Helper functions ------------------------------------------------------
lib/RIV.cpp:167
↓ 1 callers
Function
printStaticCCResult
------------------------------------------------------------------------------ Helper functions ------------------------------------------------------
lib/StaticCallCounter.cpp:119
↓ 1 callers
Method
run
lib/RIV.cpp:117
↓ 1 callers
Function
sqrt_impl
sqrt_impl uses the Newton-Raphson method for approximating square roots.
inputs/input_for_fcmp_eq.c:12
↓ 1 callers
Function
visitor
This method implements what the pass does
HelloWorld/HelloWorld.cpp:34
Method
FindFCmpEqPrinter
include/FindFCmpEq.h:54
Method
LockstepReverseIterator
------------------------------------------------------------------------------ Helper data structures ------------------------------------------------
lib/MergeBB.cpp:289
Method
OpcodeCounterPrinter
include/OpcodeCounter.h:48
Method
RIVPrinter
include/RIV.h:46
Method
StaticCallCounterPrinter
include/StaticCallCounter.h:49
Method
buildRIV
----------------------------------------------------------------------------- RIV Implementation -----------------------------------------------------
lib/RIV.cpp:58
Method
canMergeInstructions
lib/MergeBB.cpp:75
Method
canRemoveInst
----------------------------------------------------------------------------- MergeBB Implementation -------------------------------------------------
lib/MergeBB.cpp:61
Method
cloneBB
lib/DuplicateBB.cpp:143
Method
findBBsToDuplicate
------------------------------------------------------------------------------ DuplicateBB Implementation --------------------------------------------
lib/DuplicateBB.cpp:101
Function
foo
============================================================================= FILE: input_for_duplicate_bb.c DESCRIPTION: Sample input file for the D
inputs/input_for_duplicate_bb.c:10
Function
foo
============================================================================= FILE: input_for_riv.c DESCRIPTION: Sample input file for RIV analysis.
inputs/input_for_riv.c:10
Method
generateOpcodeMap
lib/OpcodeCounter.cpp:40
Method
getLastNonDbgInst
lib/MergeBB.cpp:306
Method
isRequired
Without isRequired returning true, this pass will be skipped for functions decorated with the optnone LLVM attribute. Note that clang -O0 decorates al
HelloWorld/HelloWorld.cpp:51
Method
isRequired
Part of the official API: https://llvm.org/docs/WritingAnLLVMNewPMPass.html#required-passes
include/OpcodeCounter.h:34
Method
isRequired
Part of the official API: https://llvm.org/docs/WritingAnLLVMNewPMPass.html#required-passes
include/OpcodeCounter.h:53
Method
isRequired
Without isRequired returning true, this pass will be skipped for functions decorated with the optnone LLVM attribute. Note that clang -O0 decorates al
include/InjectFuncCall.h:28
Method
isRequired
Without isRequired returning true, this pass will be skipped for functions decorated with the optnone LLVM attribute. Note that clang -O0 decorates al
include/MBASub.h:27
Method
isRequired
Without isRequired returning true, this pass will be skipped for functions decorated with the optnone LLVM attribute. Note that clang -O0 decorates al
include/ConvertFCmpEq.h:43
Method
isRequired
Without isRequired returning true, this pass will be skipped for functions decorated with the optnone LLVM attribute. Note that clang -O0 decorates al
include/DuplicateBB.h:58
Method
isRequired
Without isRequired returning true, this pass will be skipped for functions decorated with the optnone LLVM attribute. Note that clang -O0 decorates al
include/MBAAdd.h:28
Method
isRequired
Without isRequired returning true, this pass will be skipped for functions decorated with the optnone LLVM attribute. Note that clang -O0 decorates al
include/DynamicCallCounter.h:29
Method
isRequired
Without isRequired returning true, this pass will be skipped for functions decorated with the optnone LLVM attribute. Note that clang -O0 decorates al
include/MergeBB.h:52
Method
isRequired
Part of the official API: https://llvm.org/docs/WritingAnLLVMNewPMPass.html#required-passes
include/StaticCallCounter.h:34
Method
isRequired
Part of the official API: https://llvm.org/docs/WritingAnLLVMNewPMPass.html#required-passes
include/StaticCallCounter.h:54
Function
llvmGetPassPluginInfo
HelloWorld/HelloWorld.cpp:76
Function
llvmGetPassPluginInfo
lib/MergeBB.cpp:281
Function
llvmGetPassPluginInfo
lib/FindFCmpEq.cpp:136
Function
llvmGetPassPluginInfo
lib/MBAAdd.cpp:146
Function
llvmGetPassPluginInfo
lib/InjectFuncCall.cpp:138
Function
llvmGetPassPluginInfo
lib/StaticCallCounter.cpp:111
Function
llvmGetPassPluginInfo
lib/ConvertFCmpEq.cpp:173
Function
llvmGetPassPluginInfo
lib/DuplicateBB.cpp:276
Function
llvmGetPassPluginInfo
lib/MBASub.cpp:110
Function
llvmGetPassPluginInfo
lib/OpcodeCounter.cpp:119
Function
llvmGetPassPluginInfo
lib/DynamicCallCounter.cpp:242
Function
llvmGetPassPluginInfo
lib/RIV.cpp:159
Function
main
===----------------------------------------------------------------------===// Main driver code. ===--------------------------------------------------
tools/StaticMain.cpp:67
Function
main
inputs/input_for_cc.c:14
Function
main
inputs/input_for_mba.c:20
Function
main
inputs/input_for_fcmp_eq.c:28
Function
main
inputs/input_for_hello.c:22
Function
main
inputs/input_for_mba_sub.c:13
Method
mergeDuplicatedBlock
lib/MergeBB.cpp:143
Method
operator*
include/MergeBB.h:80
Method
operator--
lib/MergeBB.cpp:316
Method
run
Main entry point, takes IR unit to run the pass on (&F) and the corresponding pass manager (to be queried if need be)
HelloWorld/HelloWorld.cpp:43
Method
run
lib/MergeBB.cpp:247
Method
run
------------------------------------------------------------------------------ FindFCmpEq implementation ---------------------------------------------
lib/FindFCmpEq.cpp:76
Method
run
lib/MBAAdd.cpp:117
Method
run
lib/InjectFuncCall.cpp:111
Method
run
lib/StaticCallCounter.cpp:70
Method
run
------------------------------------------------------------------------------ ConvertFCmpEq implementation ------------------------------------------
lib/ConvertFCmpEq.cpp:126
Method
run
lib/DuplicateBB.cpp:237
Method
run
lib/MBASub.cpp:81
Method
run
lib/OpcodeCounter.cpp:58
Method
run
lib/DynamicCallCounter.cpp:216
Method
runOnBasicBlock
----------------------------------------------------------------------------- MBAAdd Implementation --------------------------------------------------
lib/MBAAdd.cpp:41
Method
runOnBasicBlock
----------------------------------------------------------------------------- MBASub Implementaion ---------------------------------------------------
lib/MBASub.cpp:39
Method
runOnModule
----------------------------------------------------------------------------- InjectFuncCall implementation ------------------------------------------
lib/InjectFuncCall.cpp:42
Method
runOnModule
------------------------------------------------------------------------------ StaticCallCounter Implementation --------------------------------------
lib/StaticCallCounter.cpp:37
Method
runOnModule
----------------------------------------------------------------------------- DynamicCallCounter implementation --------------------------------------
lib/DynamicCallCounter.cpp:76
Method
updateBranchTargets
lib/MergeBB.cpp:118