Skip to content

Instantly share code, notes, and snippets.

@Enna1
Enna1 / get_ref.print-after.loop-vectorize.ll
Last active January 21, 2024 07:30
x264 vectorization
; *** IR Dump After LoopVectorizePass on get_ref ***
; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define internal ptr @get_ref(ptr noundef %dst, ptr nocapture noundef %i_dst_stride, ptr nocapture noundef readonly %src, i32 noundef %i_src_stride, i32 noundef %mvx, i32 noundef %mvy, i32 noundef %i_width, i32 noundef %i_height, ptr nocapture noundef readonly %weight) #0 {
entry:
%and = and i32 %mvy, 3
%shl = shl nuw nsw i32 %and, 2
%and1 = and i32 %mvx, 3
%add = or disjoint i32 %shl, %and1
%shr = ashr i32 %mvy, 2
%mul = mul i32 %shr, %i_src_stride
commit 3a87bff1977a02feb072a14930add69ff47cf08d
Author: Enna1 <xumingjie.enna1@bytedance.com>
Date: Tue May 31 12:06:41 2022 +0800
DumbSanitizer
diff --git a/clang/include/clang/Basic/Sanitizers.def b/clang/include/clang/Basic/Sanitizers.def
index 9b8936cc520c..6aa6e24d4ec4 100644
--- a/clang/include/clang/Basic/Sanitizers.def
+++ b/clang/include/clang/Basic/Sanitizers.def
#!/bin/bash -eux
# Build LLVM on Ubuntu
# https://llvm.org/docs/GettingStarted.html#getting-the-source-code-and-building-llvm
# https://llvm.org/docs/CMake.html#llvm-specific-variables
################################################################################
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get autoremove -y
@Enna1
Enna1 / ConvertToUTF8.ps1
Last active May 7, 2020 09:31
Converts files to UTF-8 Encoding
<#
# NAME: ConvertToUTF8.ps1
# AUTHOR: https://github.com/Enna1
# DATE: 2020.5.3
.Synopsis
Converts .h, .hh, .hpp, .c, .cc, .cpp files in SourcePath to UTF-8 Encoding
.DESCRIPTION
Converts all files in SourcePath recursevly to UTF-8 and saves them in DestinatioPath