上一页 1 2 3 4 5 6 7 ··· 41 下一页
摘要: 使用 CreateToolhelp32Snapshot #include <iostream> #include <Windows.h> #include <TlHelp32.h> #include <Psapi.h> int main() { HANDLE hSnap = CreateToolhe 阅读全文
posted @ 2021-08-03 16:31 Ajanuw 阅读(408) 评论(0) 推荐(0) 编辑
摘要: import { Prompt } from "react-router-dom"; const Login = () => { return ( <> <Prompt message={(location, action) => { // 返回 true 表示不拦截, 你可也检查当前页面数据,提示 阅读全文
posted @ 2021-08-03 14:59 Ajanuw 阅读(504) 评论(0) 推荐(0) 编辑
摘要: console.log( window.crypto.randomUUID() ) See also: crypto.randomUUID() 阅读全文
posted @ 2021-08-01 09:44 Ajanuw 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 格式化单文件 $ vim s.perl -c 'normal! gg=G' -c ':wq!' 多文件,手动退出 $ vim -c ':bufdo execute "normal! gg=G" | update' ./* 阅读全文
posted @ 2021-07-18 14:17 Ajanuw 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 修改D:\dev\tool\HBuilderX\plugins\builtincef3terminal\script\main.js文件 大概16行的位置 if(isWin){ shell = 'D:\\dev\\tool\\cmder\\vendor\\git-for-windows\\bin\\ 阅读全文
posted @ 2021-06-11 17:47 Ajanuw 阅读(967) 评论(0) 推荐(0) 编辑
摘要: opt opt -S -instcombine src.ll -o out.ll 使用instcombine参数优化ll,很像LLVM PASS 优化器 更多的优化可以查看 opt -h clang clang.exe -emit-llvm -S main.c -o main.ll 将c代码编译为L 阅读全文
posted @ 2021-06-09 17:07 Ajanuw 阅读(367) 评论(0) 推荐(0) 编辑
摘要: void llvtype(std::string_view k, Value* v) { std::cout << std::format("{}:{}:{}", k, (int)v->getType()->getTypeID(), v->getName().str() ) << "\n"; } . 阅读全文
posted @ 2021-06-08 18:27 Ajanuw 阅读(184) 评论(0) 推荐(0) 编辑
摘要: auto llval = b.getInt32(-1); std::cout << llval->getZExtValue() << "\n"; // 无符号 std::cout << llval->getSExtValue() << "\n"; // 有符号 ConstantFP* llval = 阅读全文
posted @ 2021-06-08 18:03 Ajanuw 阅读(59) 评论(0) 推荐(0) 编辑
摘要: expr_1: IDENT /*yystack index 2*/ "=" /*yystack index 1*/ expr_1 /*yystack index 0*/ { $$ = new VarAssignAst($1, token::EQ, $3); } 阅读全文
posted @ 2021-06-08 11:09 Ajanuw 阅读(49) 评论(0) 推荐(0) 编辑
摘要: #include "llvm/ExecutionEngine/Orc/LLJIT.h" #include "llvm/IR/Function.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/Module.h" #include "llvm/Su 阅读全文
posted @ 2021-06-07 15:34 Ajanuw 阅读(147) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 41 下一页