Skip to content

Commit

Permalink
Deployed f8676a8 with MkDocs version: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
c01dkit committed Nov 26, 2024
1 parent 8eafc04 commit abb2d9d
Show file tree
Hide file tree
Showing 58 changed files with 793 additions and 433 deletions.
2 changes: 1 addition & 1 deletion 404.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions IDA/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions autoconf/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions c/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions code-gracely/index.html

Large diffs are not rendered by default.

73 changes: 69 additions & 4 deletions cpp/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions crawler/index.html

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions css/timeago.css

This file was deleted.

8 changes: 4 additions & 4 deletions docker/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dsa/array/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dsa/branch-and-bound-algo/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dsa/dynamic-algo/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dsa/graph-algo/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dsa/graph/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dsa/greedy-algo/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dsa/linkedlist/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dsa/queue/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dsa/stack/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dsa/tree/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions envs/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions fuzzing/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions git/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions go/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions interesting-articles/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions investigations/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions java/index.html

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions js/timeago.min.js

This file was deleted.

33 changes: 0 additions & 33 deletions js/timeago_mkdocs_material.js

This file was deleted.

8 changes: 4 additions & 4 deletions latex/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions linux-kernel/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions linux-server/index.html

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions llvm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
LLVM_BUILD := ~/llvm-project-15.0.7.src/build

# Rule to build the project
build_project:
mkdir -p build \
&& cd build \
&& PATH=${LLVM_BUILD}/bin:${PATH} \
CC=clang CXX=clang++ \
cmake ../src \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DCMAKE_CXX_FLAGS_RELEASE="-std=c++17 -fno-rtti -fpic -g" \
&& make

# Rule to clean the build directory
clean_project:
rm -rf build

# Default target
all: project

# Clean target
clean: clean_project

# Project target depends on build_project
project: clean_project build_project
177 changes: 173 additions & 4 deletions llvm/index.html

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions llvm/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.13)
project(IPA)

find_package(LLVM REQUIRED CONFIG)
# list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
include_directories(${LLVM_INCLUDE_DIRS})
# add_definitions(${LLVM_DEFINITIONS})

set(project
main.cpp
PrintFunctionArgsPass.cpp
PrintFunctionArgsPass.hpp
PrintFunctionNamesPass.cpp
PrintFunctionNamesPass.hpp
)
add_executable(ipa ${project})

target_link_libraries(
ipa
LLVMCore
LLVMSupport
LLVMIRReader
LLVMAnalysis
)
20 changes: 20 additions & 0 deletions llvm/src/PrintFunctionArgsPass.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include "PrintFunctionArgsPass.hpp"
#include "llvm/IR/Function.h"
#include "llvm/Support/raw_ostream.h"

using namespace llvm;

char PrintFunctionArgsPass::ID = 0;

PrintFunctionArgsPass::PrintFunctionArgsPass() : ModulePass(ID) {}

bool PrintFunctionArgsPass::runOnModule(Module &M) {
// Iterate through all functions in the module and print the number of arguments
for (Function &F : M) {
if (!F.isDeclaration()) {
errs() << "Function Name: " << F.getName()
<< ", Argument Count: " << F.arg_size() << "\n";
}
}
return false;
}
15 changes: 15 additions & 0 deletions llvm/src/PrintFunctionArgsPass.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#ifndef PRINT_FUNCTION_ARGS_PASS_HPP
#define PRINT_FUNCTION_ARGS_PASS_HPP

#include "llvm/IR/Module.h"
#include "llvm/Pass.h"

class PrintFunctionArgsPass : public llvm::ModulePass {
public:
static char ID;
PrintFunctionArgsPass();

bool runOnModule(llvm::Module &M) override;
};

#endif // PRINT_FUNCTION_ARGS_PASS_HPP
19 changes: 19 additions & 0 deletions llvm/src/PrintFunctionNamesPass.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include "PrintFunctionNamesPass.hpp"
#include "llvm/IR/Function.h"
#include "llvm/Support/raw_ostream.h"

using namespace llvm;

char PrintFunctionNamesPass::ID = 0;

PrintFunctionNamesPass::PrintFunctionNamesPass() : ModulePass(ID) {}

bool PrintFunctionNamesPass::runOnModule(Module &M) {
// Iterate through all functions in the module and print their names
for (Function &F : M) {
if (!F.isDeclaration()) {
errs() << "Function Name: " << F.getName() << "\n";
}
}
return false;
}
16 changes: 16 additions & 0 deletions llvm/src/PrintFunctionNamesPass.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef PRINT_FUNCTION_NAMES_PASS_HPP
#define PRINT_FUNCTION_NAMES_PASS_HPP

#include "llvm/IR/Module.h"
#include "llvm/Pass.h"


class PrintFunctionNamesPass : public llvm::ModulePass {
public:
static char ID;
PrintFunctionNamesPass();

bool runOnModule(llvm::Module &M) override;
};

#endif // PRINT_FUNCTION_NAMES_PASS_HPP
47 changes: 47 additions & 0 deletions llvm/src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#include "llvm/IR/Module.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/IRReader/IRReader.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Pass.h"

#include "PrintFunctionNamesPass.hpp"
#include "PrintFunctionArgsPass.hpp"

using namespace llvm;

// Command-line option to specify multiple input .bc files
static cl::list<std::string> InputFilenames(cl::Positional,
cl::desc("<input .bc files>"),
cl::OneOrMore);

int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, "Function Passes\n");

LLVMContext Context;

// Iterate through all input files
for (const auto &InputFilename : InputFilenames) {
SMDiagnostic Err;

// Load the bitcode file
std::unique_ptr<Module> Mod = parseIRFile(InputFilename, Err, Context);
if (!Mod) {
errs() << "Error reading bitcode file: " << InputFilename << "\n";
Err.print(argv[0], errs());
continue; // Skip to the next file if there's an error
}

errs() << "Analyzing file: " << InputFilename << "\n";

// Create and run the function name pass
PrintFunctionNamesPass NamePass;
NamePass.runOnModule(*Mod);

// Create and run the function argument pass
PrintFunctionArgsPass ArgsPass;
ArgsPass.runOnModule(*Mod);
}

return 0;
}
8 changes: 4 additions & 4 deletions openssh/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions picking-ups/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions porting/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions proxy/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pwn-college-cse365-spring2023/index.html

Large diffs are not rendered by default.

381 changes: 194 additions & 187 deletions python/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions rca/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions readings/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions reverse-advanced/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions reverse-basic/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sci-thoughts/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sentence-templates/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit abb2d9d

Please sign in to comment.