Skip to content

Instantly share code, notes, and snippets.

View getianao's full-sized avatar
🌞
let today = new Beginning();

Tianao Ge getianao

🌞
let today = new Beginning();
View GitHub Profile
@colematt
colematt / MyPass.cpp
Last active September 18, 2024 11:05
[Writing an LLVM Pass] #llvm
//===- MyPass.cpp - Example pass ----------------*- C++ -*-===//
#define DEBUG_TYPE "mypass"
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/raw_ostream.h"

CLang optimizations on Mac OSX

Version:

Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix

This was made with commands: