Extensible Metadata in LLVM IR

LLVM AliasAnalysis别名分析 TBAA TypeBasedAliasAnalysis llvm别名分析概述 阅读详情

Wednesday, April 14, 2010

Extensible Metadata in LLVM IR

A common request by front-end authors is to be able to add some sort of metadata to LLVM IR. This metadata could be used to influence language-specific optimization passes (for example, Type Based Alias Analysis in C), tag information for a custom code generator, or pass through information to link time optimization. LLVM 2.7 provides first-class support for this, and has switched debug information over to use it (improving debug info!).

While the details of this feature can be found in the LLVM Language Reference manual, sometimes it is hard to distill the big picture from the low-level details. This post tries to fill the gap by explaining some history, motivation and example use cases for this new LLVM 2.7 feature.

This post was written by Devang Patel and myself.

Before we dive into how metadata works, it is useful to describe how debug information was represented in LLVM 2.6 and earlier:

Debug Information in LLVM 2.6

Debugging information communicates source location information, type information and variable information to the debugger. This information is not used during the execution of program and does not result in executable code in the object file, but the code generator uses it to produce DWARF information. In this way, debug information is a sort of side channel from the front-end to the DWARF emitter in the code generator.

For lack of a better mechanism, in LLVM 2.6 and earlier, debugging information is encoded using global variables tagged with a special “llvm.metadata” section. For example, we would generate something like this to describe C code like “int my_data;”:

@my_data = common global i32 0, align 4

@llvm.dbg.global_variable = internal constant %llvm.dbg.global_variable.type { 
  i32 458804, 
  {}* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.global_variables to { }*), 
  {}* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), 
  i8* getelementptr ([8 x i8]* @.str4, i32 0, i32 0), 
  i8* getelementptr ([8 x i8]* @.str4, i32 0, i32 0), 
  i8* null, 
  {}* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), 
  i32 2, 
  {}* bitcast (%llvm.dbg.basictype.type* @llvm.dbg.basictype to { }*), 
  i1 false, 
  i1 true, 
  {}* bitcast (i32* @my_data to {}*)
}, section "llvm.metadata"

@.str4 = internal constant [8 x i8] c"my_data\00", section "llvm.metadata"

In this example, @my_data is the actual global variable generated for the C variable. This is what gets generated regardless of whether debug info is enabled or not.

Here, @.str4 and @llvm.dbg.global_variable were interpreted by the code generator as descriptors holding information about @my_data, with various fields indicating the line number the global is declared, the compile unit, etc. You can see a full description of these fields in the LLVM2.6 Debug Info docs. At code generation time, the dwarf writer would walk this and convert it to DWARF information. The LLVM globals would not get emitted as normal code because they are in the magic llvm.metadata section.

While this did provide a basic level of functionality, it had a number of drawbacks. First, the @my_data global variable has an extra use in the IR, which may influence optimization of @my_data. For example the dead global elimination pass wouldn’t delete it if dead, and the mod/ref analysis pass wouldn’t analyze it because it appears that its address is taken. One major goal of debug information is that turning it on should not affect the executable code generated by the compiler. If it did, turning on debug info could hide the bug you’re trying to track down!

A second drawback of this implementation is that it has lots of pointless bitcast constant expressions. These extra objects bloat memory footprint, take time to allocate, unique and optimize, etc. The bitcasts also negatively impact readability of LLVM intermediate code, and are completely unnecessary: the dwarf emitter doesn’t care about the types, it is walking this information as a data structure, not emitting it to memory.

Motivation for LLVM IR Metadata

Based on our experiences with debug info, and a desire to implement new cool things, we designed and implemented a brave new world where metadata was actually a first-class part of LLVM IR. The design aims to solve the issues mentioned above:

  1. Optimizations shouldn’t be affected by metadata unless they explicitly try to look at it.
  2. We want to reduce the memory footprint and cost of debug info.
  3. Metadata shouldn’t have LLVM IR types.
  4. Ideally, the syntactic clutter should be reduced, improving the odds that someone can decode this stuff.

Another important design point is that we want to be able to add new forms of metadata without the optimizers having to be updated to support them. This is a critical design point, because we want the metadata to be by front-end authors to do whatever they want, and shouldn’t require hacking the optimizers.

Metadata in LLVM 2.7

Metadata support includes several different related IR extensions: a new ‘metadata’ type in LLVM IR, new MDString, MDNode, and NamedMDNode classes (all three of which derive from ‘Value’), added support for referencing metadata from intrinsics, and support for attaching it to instructions. Metadata support is generally in the llvm/Metadata.h header. We’ll walk through each of these constructs in turn:

The new ‘metadata’ type is the LLVM Type of each new IR object. This ensures that you can’t use metadata as operands to random instructions, for example, you can’t do ‘add i32 4, !"str"’ since metadata is not a first-class type. The restrictions on metadata mean that it can only appear as an argument to an intrinsic, as an operand to another metadata, at top-level in a module (NamedMDNode), or be attached to an instruction.

The new MDString class is used to represent string data in metadata, and it always has a metadata type. Since MDStrings are meant as metadata, not code, they are not null terminated in the .ll file. The MDString class allows C++ code walking the IR to access the arbitrary string data with a StringRef. In the .ll file, its syntax is something like:

!"foo"

The new MDNode class is a tuple that can reference arbitrary LLVM IR values in the program as well as other metadata. In the .ll file, MDNodes are numbered and the syntax for referring to one is “!123” where 123 is the number of the node being referenced. An MDNode is declared with something like:

!23 = !{ i32 4, !"foo", i32 *@G, metadata !22 }

In this case, the MDNode has four operands, the first is a ConstantInt, the second is a MDString, the third is a global variable, the fourth is another MDNode. MDNode’s come in two flavors: one is a normal global MDNode which references global variables, constants etc. The second is a function-local MDNode, which can (potentially transitively) refer to instructions within a particular function. One important aspect of MDNodes is that they are not considered to be “uses” of a value: for example, they won’t be found with use_iterator and aren’t counted for predicates like Value::hasOneUse(). This prevents metadata from accidentally affecting code generation.

The new NamedMDNode class provides named access to metadata at a module level, and each NamedMDNode contains a list of MDNode’s. This gives clients of metadata (e.g. debug info) the ability to find all the metadata of a particular form (e.g. global variable debug descriptors). The Module class maintains a list of NamedMDNode instances just like it does global variables, functions, and aliases. In the .ll file, a NamedMDNode looks like this:

!my_named_mdnode = !{ !1, !2, !4212 }

This defines a NamedMDNode with three referenced MDNodes.

LLVM intrinsics may reference metadata as normal operands. More specifically, they can directly reference MDNode and MDString objects even though other calls and other operations cannot. In .ll files, this looks something like:

!0 = metadata !{i32 524544, ...

...
  %x = alloca i32
  call void @llvm.dbg.declare(metadata !{i32* %x}, metadata !0)

This passes the module-level !0 MDNode into the second argument and passes a function-local MDNode as the first argument (which, since it is an mdnode, does not count as a use of %X). In this case, the code generator uses this information to know that the metadata !0 is the variable descriptor for the alloca %X. Note that intrinsics themselves are not considered metadata, so they can affect code generation etc.

Finally, metadata can be attached to instructions. Instructions can have an arbitrary list of MDNodes attached to them with string tags. For example:

store i32 0, i32* %P, !nontemporal !2, !frobnatz !123
ret void, !dbg !9

The first case is a store with two instruction-level metadata records attached to it, one named ‘nontemporal’ (which is implemented in LLVM 2.7) and one named ‘frobnatz’ (which is a great new feature that might be in LLVM 2.8). The second is a return instruction with a debug location attached to it.

Using Extensible Metadata for Debug Info

To contrast with the LLVM 2.6 debug info example above, in LLVM 2.7 we get something like this:

@my_data = common global i32 0, align 4
  !llvm.dbg.gv = !{!0}

  !0 = metadata !{
     i32 524340, i32 0, metadata !1, metadata !"my_data", metadata !"my_data",
     metadata !"", metadata !1, i32 2, metadata !3,
     i1 false, i1 true, i32* @my_data
  }

This replaces the global variables with an MDNode and MDString. This shrinks the IR by eliminating the pointless bitcasts, eliminating the irrelevant IR types, and the use of @my_data by !0 is no longer considered a “use”. However, we still have lots of magic fields that are documented elsewhere.

If you’d like to see more examples of debug info, you can see what the frontend generates by using something like “clang foo.c -g -S -o - -emit-llvm | less”.

What to use Metadata for

A subtle point that was touched on above is that we don’t want the optimizers to have to know about metadata. While it is very feasible to make optimizations preserve specific metadata (e.g. loop strength reduction could do some sort of fancy thing to update debug info it if wanted) by default, optimizations ignore and destroy it. For example, if an optimization deletes an instruction and there is a function-level MDNode referencing it, the reference in the MDNode will implicitly drop to null.

This has some important implications on what it is safe to use metadata for: it can only be used for “value add” information, information that does not change the semantics of the program. To repeat this important point, use of metadata is only safe if the program retains its semantics when the metadata is silently dropped.

For example, it is trivially safe for debug information to use metadata (though the dwarf emitter has to be careful to tolerate null pointers!): if metadata is dropped, it just means that debug information quality is reduced, it doesn’t invalidate the debug info itself. In our example above, if the global “my_data” is deleted by the optimizer, the reference will drop to null and the debug info emitter won’t generate a location for my_data.

While this may sound limiting, there are lots of potential uses cases for metadata, you just have to be careful how you structure it. Lets run through a few examples:

Current and Potential Clients of Metadata

LLVM 2.7 supports generating non-temporal loads and stores using the !nontemporal instruction-level modifier as documented in the LangRef manual. A non-temporal access is normal access with a hint to the CPU that it can avoid pulling data into the cache, as it won’t be accessed again recently. This is safe because !nontemporal is an optimization hint: dropping the !nontemporal hint will result in the optimizer producing a normal load and store, which may have lower performance, but provides the same semantics as an actual non-temporal access.

A potential future use case is to support Type-Based Alias Analysis (TBAA). TBAA is an optimization to know that “float *P1” and “int P2" can never alias (in GCC, this is enabled with -fstrict-aliasing). The trick with this is that it isn’t safe to implement TBAA in terms of LLVM IR types, you really need to be able to encode and express a type-subset graph according to the complex source-level rules (e.g. in C, "char” can alias anything).

An LLVM implementation of TBAA would encode the type-subset graph with MDNodes, and add type tags to load and store operations with a !tbaa instruction tag. A new AliasAnalysis implementation would look for these tags on accesses and walk the type subset graph to determine if the two accesses might alias each other. This use of metadata is also safe, because it is an optimization: if the type tag gets dropped, it is always safe to assume that the access aliases everything for TBAA purposes.

More broadly, metadata is a great way for a front-end to communicate arbitrary information to custom language-specific optimization passes. TBAA is one example, but this could equally apply to things like devirtualization (through class hierarchy analysis), doing locking and exception handling optimizations, even library-centric optimizations could be implemented with this.

Since LLVM 2.7 is only the first release that supports metadata in its IR, we have yet to see how it will ultimately get used. If you end up using it in a novel or interesting way, please send me a link describing your use and I’ll link to it from this post.

-Chris and Devang

Posted by Chris Lattner at 12:23 AM

Labels: LLVM-IR, new-in-llvm-2.7, optimization

【信息科学与工程学】【数据中心】第三十五篇 云计算数据中心的学科知识04 编号学科(课程)核心知识点在云计算/云存储/云网络/云安全/云MaaS中的作用代表教材/资料/论文 + 数学方程式列表工业界应用D1421​云原生数据库:TiDB​HTAP(混合事务/分析处理)、分布式SQL、水平扩展、强一致(Raft)、自动故障恢复、与MySQL兼容、TiFlash列式引擎提供弹性扩展的分布式数据库;支撑高并发在线交易与实时分析教材:《TiDB in Action》PingCAP(2020) 论文:《TiDB: A Raft-based HTAP Database》(2017) 阅读详情

相关推荐

【ERROR】ERROR1: PROJ: proj_create_from_database: Cannot find proj.db - 环境变量配置与路径修复指南

本文详细解析了地理空间数据处理中常见的【ERROR】ERROR1: PROJ: proj_create_from_database: Cannot find proj.db 错误。该错误的根源是PROJ库无法定位其核心数据文件proj.db。文章提供了从问题诊断到修复的完整指南,包括如何在不同系统(Windows/macOS/Linux)和安装方式(Conda/pip/源码编译)下找到正确的proj.db文件路径,并通过设置PROJ_LIB环境变量(临时、代码内或永久)彻底解决问题,同时给出了进阶排查技巧和

m2n3o4p5的博客 558

编译入门那些事儿(6):LLVM Metadata System

Metadata 背景介绍由于 LLVM IR Opcode 的表达能力有限,为了将额外的信息传递给优化器和代码生成器,LLVM 通常有三个解决方法,分别是 Attribute、Metadata 和 Intrinsic。如下图所示,三种方法各有优劣,使用哪种方法取决于需要传递的信息量。Metadata 根据命名可知,代表元数据,它没有类型,也不是直接表示值,是用于描述 LLVM IR 的元数据格式...

2301_76434200的博客 507

Keil MDK-ARM v5.43a 部署 STM32F103 开发环境全流程

嵌入式开发环境是 Cortex-M 微控制器工程落地的基础支撑,其核心在于编译器链、设备支持包(DFP)与调试驱动的协同一致性。Keil MDK-ARM 作为工业级 ARM Cortex-M 开发套件,依托 Arm Compiler 和 CMSIS 标准,提供从代码编译、外设抽象到实时调试的全栈能力。其技术价值体现在对 STM32 等主流 MCU 的深度适配、高可靠性 SWD 调试支持,以及与 HAL 库、CubeMX 工程的无缝集成。典型应用场景涵盖温湿度传感终端、工业 PLC 子模块及低功耗边缘节点开发

weixin_33750664的博客 915

LLVM 学习(二) -LLVM IR 语法理论学习

LLVM 学习(二) -理论学习 2022-04-16 12:05:47 sizaif 文章目录LLVM 学习(二) -理论学习LLVM IR 语法模块结构链接类型调用约定可见格式DLL存储类全局变量函数MetadataNamed Metadata控制指令含义ret 返回br 分支switch 多条件分支indirectbr 转移到指定地址invoke 普通/带异常调用callbr 调用分支resume 抛出异常catchswitch 异常处理catchret 处理返回cleanupretunre

Sizaif's 小屋 4104

Win10更新后黑屏只剩鼠标?火绒误杀explorer.exe的5种自救方案(附详细步骤)

本文详细介绍了Win10更新后出现黑屏只剩鼠标的5种专业修复方案,重点解决火绒误杀explorer.exe的问题。从基础的任务管理器操作到安全模式下的系统修复,再到注册表编辑和系统还原,提供了全面的解决方案,帮助用户快速恢复系统正常运行。

weixin_29306571的博客 656

得物(毒)App潮鞋价格波动监控系统实战:从爬虫开发到数据可视化完整指南

本文将带领您从零开始构建一套完整的得物潮鞋价格监控系统,涵盖爬虫开发、数据存储、价格波动分析和可视化展示等全流程技术。我们将使用最新的Python技术栈,包括异步爬虫框架、智能代理池、反爬虫绕过技巧,以及基于机器学习的时间序列预测模型。无论您是想要追踪特定鞋款价格的潮流爱好者,还是希望构建商业级监控系统的开发者,这篇文章都将为您提供切实可行的解决方案。

2201_76125261的博客 2511

LLVM Metadata 介绍

1 Meatadata 介绍 1.1什么是 Metadata? 在 LLVM 中,我们使用 Clang 进行编译的时候,加上“-g”参数可以 在 IR 文件中额外可以得到一些源代码级别的信息。例如: clang -emit-llvm -S -g test.c -o test.ll LLVM 把这些调试信息称为 Metadata。在 IR 层次上的分析遍或者转换遍 可以使用这些信息。

dreammeard的专栏 7434

C++程序无法正常启动(报0xc000007b错误)问题的详细排查

本文详细介绍了应用程序启动时遇到0xC000007B错误的排查过程。问题源于32位程序与64位运行时库的不匹配,以及缺少依赖的运行时库。通过分析系统日志、使用Windbg和检查程序位数,最终确定问题在于32位程序误引用了64位系统目录下的库文件。

dvlinker的技术专栏 1万+

llvm libLLVMCore源码分析 21 - Metadata Class

源码路径 llvm\include\llvm\IR\Metadata.h llvm\include\llvm\IR\DebugInfoMetadata.h llvm Metadata class llvm IR中允许使用元数据附在指令和全局对象上,为优化器和代码生成器提供一些额外的信息(比如调试信息)。在llvm中,使用Metadata类表示元数据。Metadata类的继承树如下: 为了高效的管理Metadata对象,Metadata在llvm中的存储分为3种类型: Uniqued:元数据内

weixin_42654107的博客 1254

【人工智能】架构演进:基于本体论与 LLM Agent 的供应链备件决策闭环实践

本文探讨了如何将本体论(Ontology)与大语言模型(LLM)Agent结合,构建供应链备件管理的智能决策系统。针对LLM在垂直领域存在的幻觉和逻辑缺陷问题,提出通过本体论建立结构化知识框架,形成四层架构:知识建模、动态感知、深度分析和决策闭环。系统利用图数据库实例化领域本体,融合多源数据实现实时感知,结合图谱推理和时序预测进行确定性分析,最终通过工具调用完成决策执行。技术选型推荐Gemini 1.5 Pro、Neo4j和LangChain等工具,实现从自动化到智能化的升级。该架构为工业领域提供了可解释、

奶爸的编程之路,也就一周冷个三天 175

基于 Simulink 的飞轮储能系统(Flywheel Energy Storage System, FESS)充放电协调控制实战教程

本教程详细介绍了基于Simulink的飞轮储能系统(FESS)建模与控制方法。系统采用永磁同步电机(PMSM)和背靠背变流器架构,包含机侧全速域矢量控制和网侧直流稳压控制。重点讲解了机电耦合建模、FOC控制算法实现、基于电压下垂的协调控制策略,以及混合储能系统设计思路。教程提供了MATLAB函数代码示例,并给出典型工况下的仿真波形分析指南,同时指出了常见问题解决方案。该模型可用于研究飞轮储能在调频、能量回收等场景的应用,为新能源消纳和微网稳定提供仿真工具。

MHD0815的博客 173

[LLVM]How to Read and Write Metadata in LLVM

http://jiten-thakkar.com/posts/how-to-read-and-write-metadata-in-llvmThis is a small post to demonstrate working code for writng and reading metadata information from LLVM IR. I couldn’t find any good...

I have a adream 1132

【ArcGIS Engine二次开发】入门基础(2):ArcGIS开发方式(VBA、DLL、Add-in、Engine)对比

文章目录2.1 使用VBA进行桌面软件开发2.1.1 VBA开发方式2.1.1 VBA代码的安全性2.2 使用DLL进行桌面软件开发2.2.1 DLL开发方式2.2.2 DLL功能的应用部署2.3 使用Add-in进行桌面软件开发2.4 使用ArcGIS Engine构建独立应用程序 对于桌面GIS应用来说,ArcGIS平台不仅提供了用于开发独立运行的GIS应用软件的二次开发工包ArcGIS Engine,还提供了对ArcGIS Deskop桌面软件进行扩展的开发的话,在开发个具体的GIS 行业应用软件时

智慧空间实验室 6513

llvm libLLVMCore源码分析 26 - Module Class

源码路径 llvm\include\llvm\IR\Module.h llvm Module Class 在llvm中,Module类代表的是llvm程序(既IR编写的程序)的顶层结构。1个Module本质上就是原始程序的1个翻译单元(TU),或者是原始程序的多个翻译单元通过链接器链接而成。 Module中包含了全局变量列表,函数列表,依赖的库/Module列表,符号表以及其他描述目标架构信息的数据。 DataLayout DataLayout既数据布局,是1个字符串,描述了数据在内存中的布局。

weixin_42654107的博客 855

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

LLVM IR 语法

摘要     本文档是一个LLVM汇编语言手册,LLVM 语言是一个Static Single Assignment (SSA)的中间语言,其特点:类型安全; 低级别操作;灵活;具有清晰表示“所有”高级语言的能力。它作为一个统一的代码表示,贯穿LLVM编译的各个阶段。 介绍     LLVM语言,旨在用于三个不同的形式:内存中的编译中间语言(IR),保存在硬盘上的bitcode(适合

starspringcloud的博客 1万+

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

LLVM IR 语法简介(一)

LLVM IR 被设计为一种轻量级,底层的语言用来描述各种上层的语言,对于不同的语言,都可以归纳为同一种IR的格式。 标示符: LLVM的标识符分为全局标识符和局部标识符。 全局标识符以'@'开头,局部标识符以'%'为开头。 1. 命名过的数值会被标识为一个带有前缀的字符串,类似于%foo, @DivisionByZoo.具体的语法是: [%@][a-zA-Z$._][a-zA-

Winter is coming 3344

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

基于LLVM 中间表示(IR)分析实例

LLVM是很优秀的编译器,其支持多源语言,多后台,而且同程序整体和整个生命周期的分析、转换和优化。 LLVM 中间表示(Intermediate representation,简称IR)作为LLVM的中间语言,对LLVM各种特性的支持有非常重要的作用。 有很多时候我们需要对LLVM IR进行分析,LLVM官方有文档:http://llvm.org/docs/WritingAnLLVMPass.ht

菩提树下写代码 1万+

LLVM介绍

后端编译工具

saturn254的专栏 1164

LLVM的源代码调试

原文地址:http://llvm.org/docs/SourceLevelDebugging.html#llvm-dbg-declare 引子 本文是与LLVM调试信息相关的所有信息的集大成者。它描述了LLVM调试信息采用的实际形式,这对哪些关心创建前端或直接处理这些信息的人是有用的。另外,本文提供了C/C++调试信息看起来像什么的具体例子 LLVM调试信息背后的哲学 LLVM调试信息的思

wuhui_gdnt的专栏 7922

【14】git配置忽略文件的3种情形

【14】git配置忽略文件的3种情形1:从未提交过的文件可以使用.gitignore也就是添加之后从来没有提交(commit)过的文件,可以使用.gitignore忽略该文件该文件只能作用于未跟踪的文件(Untracked Files),也就是那些从来没有被 git 记录过的文件比如,忽略log/下的日志文件,可以在.gitignore中写log/*2:已经被git记录过的文件,想从远程仓库删除并...

yhq1913的博客 607

LLVM IR 调试 常见错误

LLVM 调试常见错误记录 Error: Basic Block in function 'Filter' does not have terminator! label %for.cond LLVM ERROR: Broken module, no Basic Block terminator! 分析 : 应该是某一个Basic BLock结束 却没有跳转;如本错误丢失 Branc

tina_j的专栏 1688

LLVM笔记(2) - IR

1. 什么是IR IR(intermediate representation)是LLVM独创的中间表达式. 经典的compiler架构由前端frontend(读入源代码, 通过词法, 语法与语义分析建立AST), 中端optimizer(优化模块)与backend(通过指令选择, 寄存器分配等阶段最终输出为目标架构的汇编). 其中frontend随语言类型变化而变化, backend随目标架构...

weixin_34061042的博客 337

LLVM Spiller 关键代码剖析

LLVM Spiller spill 函数 void InlineSpiller::spill(LiveRangeEdit &edit) { ++NumSpilledRanges; Edit = &edit; assert(!TargetRegisterInfo::isStackSlot(edit.getReg()) && "Trying to spill a stack sl

Enorsee的博客 1527

一起学习LLVM(三)

学习LLVM常用的API操作 常用的结构: ---关于函数和指令以及block和指令的操作; 引用的各自类型: ---Dynamic casts ---Instanceof-of casts 修改CFG的几种方式 ---修改基本块或者指令 一、Runtime type inference(RTTI)...

雪一梦的博客 1359

从零开始的LLVM快速入门:自己动手实现基于llvm的字符串加密

我决定把自留地里的一些文章搬运过来,纯给新手入门使用。稳定的开源混淆请参见 HikariObfuscator/Hikari注:如同另一篇一样,这只是个演示向的教学,这个实现的问题会在末尾写出。实际使用请直接使用Hikari的实现。 原来的帖子下面还有一些其他的讨论,来玩呀。零基础的入门贴的入门指南(如果你完全没有接触过LLVM的话这是必读) : http://www.alonemonkey.com...

dong940345278的博客 4118

.gitignore文件用法及如何配置

.gitignore文件用法如何配置(笔记) .gitignore文件是在git提交的时候用来屏蔽某些你不想提交上去的文件。 项目开发过程中,有时候不想把一些文件(如中间文件/编译文件等)提交到git上。这个时候就由.gitignore文件来筛选出不想提交的文件。所筛选的文件/夹将不会被追踪(tracked),push的时候也不会上传到git上。 **以下用法配置是单片机C开发项目中的 创建 我们需要在提交Git之前,需要自己创建一个.gitignore文件,由于Windows下创建文件必须键入文件名,而要

zhang90283的博客 2万+
上一篇: Dragonegg Successfully Self-Hosts!
下一篇: Google Summer of Code: C++ Modernizer Improvements
「已注销」
博客等级 码龄11年 2粉丝 18原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值