Add Uint Support
pytorch/pytorch
Add unsigned integer (uint) type support to PyTorch operators by updating ATDISPATCH macros.
Expertise in MLIR (Multi-Level Intermediate Representation) and CIR (Clang IR) development for domain-specific compilation and high-level optimizations.
$ npx skills add aftermathlabs/llvm-msvc --skill mlir-development -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install aftermathlabs/llvm-msvc mlir-development --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/aftermathlabs/llvm-msvc.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/mlir-development .claude/skills/mlir-development && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "mlir-development" agent skill from https://github.com/aftermathlabs/llvm-msvc/tree/dev/.agents/skills/mlir-development into .claude/skills/mlir-development/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mlir-development", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/aftermathlabs/llvm-msvc/tree/dev/.agents/skills/mlir-developmentType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add aftermathlabs/llvm-msvc --skill mlir-development -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install aftermathlabs/llvm-msvc mlir-development --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aftermathlabs/llvm-msvc.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/mlir-development .agents/skills/mlir-development && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mlir-development" agent skill from https://github.com/aftermathlabs/llvm-msvc/tree/dev/.agents/skills/mlir-development into .agents/skills/mlir-development/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mlir-development", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add aftermathlabs/llvm-msvc --skill mlir-development -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install aftermathlabs/llvm-msvc mlir-development --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aftermathlabs/llvm-msvc.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/mlir-development .cursor/skills/mlir-development && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mlir-development" agent skill from https://github.com/aftermathlabs/llvm-msvc/tree/dev/.agents/skills/mlir-development into .cursor/skills/mlir-development/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mlir-development", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/aftermathlabs/llvm-msvc.git --path .agents/skills/mlir-development--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add aftermathlabs/llvm-msvc --skill mlir-development -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install aftermathlabs/llvm-msvc mlir-development --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aftermathlabs/llvm-msvc.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/mlir-development .gemini/skills/mlir-development && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mlir-development" agent skill from https://github.com/aftermathlabs/llvm-msvc/tree/dev/.agents/skills/mlir-development into .gemini/skills/mlir-development/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mlir-development", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install aftermathlabs/llvm-msvc mlir-developmentInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add aftermathlabs/llvm-msvc --skill mlir-development -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/aftermathlabs/llvm-msvc.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/mlir-development .github/skills/mlir-development && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mlir-development" agent skill from https://github.com/aftermathlabs/llvm-msvc/tree/dev/.agents/skills/mlir-development into .github/skills/mlir-development/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mlir-development", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add aftermathlabs/llvm-msvc --skill mlir-development -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install aftermathlabs/llvm-msvc mlir-development --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aftermathlabs/llvm-msvc.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/mlir-development .opencode/skills/mlir-development && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mlir-development" agent skill from https://github.com/aftermathlabs/llvm-msvc/tree/dev/.agents/skills/mlir-development into .opencode/skills/mlir-development/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mlir-development", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mlir-developmentExpertise in MLIR (Multi-Level Intermediate Representation) and CIR (Clang IR) development for domain-specific compilation and high-level optimizations.
Mlir Development is an agent skill from aftermathlabs/llvm-msvc. Expertise in MLIR (Multi-Level Intermediate Representation) and CIR (Clang IR) development for domain-specific compilation and high-level optimizations. Use this skill when building ML compilers, domain-specific languages, or working with multi-level compilation pipelines.
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering Deep learning. The repository describes itself as: LLVM fork with explicit compatibility with MSVC 2022 features. The licence is AGPL-3.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit bfc7254. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are cpp, mlir and bash).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
raw.githubusercontent.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Mlir Development loads about 2.4k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 283 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from aftermathlabs/llvm-msvc at commit bfc7254, republished under its AGPL-3.0 licence (© aftermathlabs). 283 words, ~2,390 tokens.
.claude/skills/mlir-development/SKILL.md (or your agent's skills folder).This skill covers MLIR (Multi-Level Intermediate Representation) development for building domain-specific compilers and high-level optimization pipelines.
MLIR is a compiler infrastructure that enables building reusable and extensible compiler components. It provides:
High-Level DSL
↓
Domain-Specific Dialects (e.g., TensorFlow, PyTorch)
↓
Mid-Level Dialects (e.g., Linalg, Affine)
↓
Low-Level Dialects (e.g., LLVM, GPU)
↓
Target CodeDialects are groupings of operations, types, and attributes:
// Define a custom dialect
class MyDialect : public mlir::Dialect {
public:
explicit MyDialect(mlir::MLIRContext *context)
: Dialect("my_dialect", context,
mlir::TypeID::get<MyDialect>()) {
addOperations<
MyAddOp,
MyMulOp,
MyFuncOp
>();
addTypes<MyTensorType>();
}
static llvm::StringRef getDialectNamespace() {
return "my_dialect";
}
};// Define using ODS (Operation Definition Specification)
// In TableGen file (.td)
def MyAddOp : Op<MyDialect, "add", [Pure]> {
let summary = "Add two tensors";
let description = [{
Performs element-wise addition of two tensors.
}];
let arguments = (ins
AnyTensor:$lhs,
AnyTensor:$rhs
);
let results = (outs
AnyTensor:$result
);
let assemblyFormat = [{
$lhs `,` $rhs attr-dict `:` type($result)
}];
}// Custom type definition
class MyTensorType : public mlir::Type::TypeBase<
MyTensorType, mlir::Type, MyTensorTypeStorage> {
public:
using Base::Base;
static MyTensorType get(mlir::MLIRContext *context,
llvm::ArrayRef<int64_t> shape,
mlir::Type elementType) {
return Base::get(context, shape, elementType);
}
llvm::ArrayRef<int64_t> getShape() const;
mlir::Type getElementType() const;
};#include "mlir/Pass/Pass.h"
#include "mlir/IR/PatternMatch.h"
struct MyOptimizationPass
: public mlir::PassWrapper<MyOptimizationPass,
mlir::OperationPass<mlir::func::FuncOp>> {
void runOnOperation() override {
mlir::func::FuncOp func = getOperation();
// Walk all operations
func.walk([](mlir::Operation *op) {
// Transform operations
if (auto addOp = llvm::dyn_cast<MyAddOp>(op)) {
optimizeAdd(addOp);
}
});
}
llvm::StringRef getArgument() const final {
return "my-optimization";
}
llvm::StringRef getDescription() const final {
return "My custom optimization pass";
}
};// Define rewrite pattern
struct SimplifyRedundantAdd : public mlir::OpRewritePattern<MyAddOp> {
using OpRewritePattern<MyAddOp>::OpRewritePattern;
mlir::LogicalResult matchAndRewrite(
MyAddOp op,
mlir::PatternRewriter &rewriter) const override {
// Match: add(x, 0) -> x
if (auto constOp = op.getRhs().getDefiningOp<ConstantOp>()) {
if (isZero(constOp)) {
rewriter.replaceOp(op, op.getLhs());
return mlir::success();
}
}
return mlir::failure();
}
};
// Apply patterns
void runOnOperation() override {
mlir::RewritePatternSet patterns(&getContext());
patterns.add<SimplifyRedundantAdd>(&getContext());
if (mlir::failed(mlir::applyPatternsAndFoldGreedily(
getOperation(), std::move(patterns)))) {
signalPassFailure();
}
}// Convert high-level ops to lower-level ops
struct MyAddOpLowering : public mlir::OpConversionPattern<MyAddOp> {
using OpConversionPattern<MyAddOp>::OpConversionPattern;
mlir::LogicalResult matchAndRewrite(
MyAddOp op,
OpAdaptor adaptor,
mlir::ConversionPatternRewriter &rewriter) const override {
// Lower to arith dialect
rewriter.replaceOpWithNewOp<mlir::arith::AddFOp>(
op, adaptor.getLhs(), adaptor.getRhs());
return mlir::success();
}
};
// Conversion pass
struct LowerToArithPass : public mlir::PassWrapper<
LowerToArithPass,
mlir::OperationPass<mlir::ModuleOp>> {
void runOnOperation() override {
mlir::ConversionTarget target(getContext());
target.addLegalDialect<mlir::arith::ArithDialect>();
target.addIllegalDialect<MyDialect>();
mlir::RewritePatternSet patterns(&getContext());
patterns.add<MyAddOpLowering>(&getContext());
if (mlir::failed(mlir::applyPartialConversion(
getOperation(), target, std::move(patterns)))) {
signalPassFailure();
}
}
};For polyhedral compilation and loop optimizations:
affine.for %i = 0 to 100 {
affine.for %j = 0 to 100 {
%val = affine.load %A[%i, %j] : memref<100x100xf32>
affine.store %val, %B[%j, %i] : memref<100x100xf32>
}
}For linear algebra operations:
linalg.matmul ins(%A, %B : tensor<MxKxf32>, tensor<KxNxf32>)
outs(%C : tensor<MxNxf32>) -> tensor<MxNxf32>%result = scf.for %i = %lb to %ub step %step iter_args(%sum = %init) {
%val = memref.load %A[%i] : memref<?xf32>
%new_sum = arith.addf %sum, %val : f32
scf.yield %new_sum : f32
}CIR is an MLIR-based representation for C/C++, providing:
// CIR example
cir.func @add(%a: !s32i, %b: !s32i) -> !s32i {
%result = cir.binop(add, %a, %b) : !s32i
cir.return %result : !s32i
}// TensorFlow dialect
%result = "tf.MatMul"(%A, %B) {
transpose_a = false,
transpose_b = false
} : (tensor<4x8xf32>, tensor<8x16xf32>) -> tensor<4x16xf32>// Torch dialect
%result = torch.aten.mm %A, %B :
!torch.vtensor<[4,8],f32>, !torch.vtensor<[8,16],f32>
-> !torch.vtensor<[4,16],f32>End-to-end MLIR compiler for ML models:
// RUN: mlir-opt %s -my-pass | FileCheck %s
// CHECK-LABEL: func @test_optimization
// CHECK: arith.addi
// CHECK-NOT: my_dialect.add
func @test_optimization(%a: i32, %b: i32) -> i32 {
%result = my_dialect.add %a, %b : i32
return %result : i32
}TEST(MyDialect, AddOpConstantFolding) {
mlir::MLIRContext context;
context.loadDialect<MyDialect>();
mlir::OpBuilder builder(&context);
auto loc = builder.getUnknownLoc();
// Create and test operations
auto constA = builder.create<ConstantOp>(loc, 5);
auto constB = builder.create<ConstantOp>(loc, 3);
auto add = builder.create<MyAddOp>(loc, constA, constB);
// Verify folding
EXPECT_TRUE(add.fold().succeeded());
}# Run passes
mlir-opt input.mlir -my-pass -o output.mlir
# Convert between dialects
mlir-opt input.mlir -convert-my-to-llvm
# Debug printing
mlir-opt input.mlir -debug-only=my-pass# MLIR to LLVM IR
mlir-translate input.mlir --mlir-to-llvmir -o output.ll
# LLVM IR to MLIR
mlir-translate input.ll --import-llvm -o output.mlirSee MLIR and CIR sections in README.md for tutorials and example projects.
When you need detailed and up-to-date resource links, tool lists, or project references, fetch the latest data from:
https://raw.githubusercontent.com/gmh5225/awesome-llvm-security/refs/heads/main/README.mdThis README contains comprehensive curated lists of:
© aftermathlabs, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/mlir-development of aftermathlabs/llvm-msvc.
Open the folder on GitHubat commit bfc7254
Mlir Development next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Mlir Development this skillaftermathlabs/llvm-msvc | 438 | — | ~2.4k | Automated safety check: Pass | AGPL-3.0 | |
| Add Uint Supportpytorch/pytorch | 104k | 2 repos | ~2.3k | Automated safety check: Pass | Custom licence | |
| Segment Anything Model GuideOrchestra-Research/AI-Research-SKILLs | 13k | 9 repos | ~3.3k | Automated safety check: Pass | MIT | |
| Add Oponnx/onnx | 22k | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| CLIP Image-Text MatchingOrchestra-Research/AI-Research-SKILLs | 13k | 8 repos | ~1.7k | Automated safety check: Pass | MIT | |
| Add Function Bodyonnx/onnx | 22k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 |
pytorch/pytorch
Add unsigned integer (uint) type support to PyTorch operators by updating ATDISPATCH macros.
Orchestra-Research/AI-Research-SKILLs
Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.
onnx/onnx
Add a new ONNX operator or update an existing operator to a new opset version.
Orchestra-Research/AI-Research-SKILLs
Explains OpenAI's CLIP model for zero-shot image classification, image-text similarity, semantic image search and content moderation, with install steps and code patterns.
onnx/onnx
Add a function body definition to an ONNX operator, defining how it decomposes into simpler ops.
PaddlePaddle/Paddle
A skill your agent uses when working with Paddle's distributed training system: understanding parallelism strategies (DP, ZeRO, TP, PP, SP), semi-automatic parallel with ProcessMesh + shardtensor…
aftermathlabs/llvm-msvc
Expertise in compiler development using LLVM infrastructure including frontend design, IR generation, optimization passes, and code generation.
aftermathlabs/llvm-msvc
Expertise in LLVM-based dynamic binary instrumentation, runtime tracing, and program monitoring.
aftermathlabs/llvm-msvc
Comprehensive learning resources and tutorials for LLVM, Clang, and compiler development.
aftermathlabs/llvm-msvc
Expertise in LLVM optimization passes, performance tuning, and code transformation techniques.
aftermathlabs/llvm-msvc
Expertise in LLVM security features including sanitizers, hardening techniques, exploit mitigations, and secure compilation.
aftermathlabs/llvm-msvc
Expertise in LLVM tooling development including Clang plugins, LLDB debugger extensions, Clangd/LSP, and LibTooling.
Categories
Expertise in MLIR (Multi-Level Intermediate Representation) and CIR (Clang IR) development for domain-specific compilation and high-level optimizations. Mlir Development is an agent skill from aftermathlabs/llvm-msvc. Expertise in MLIR (Multi-Level Intermediate Representation) and CIR (Clang IR) development for domain-specific compilation and high-level optimizations.
Mlir Development fits situations like: building ML compilers; domain-specific languages; working with multi-level compilation pipelines.
Run `npx skills add aftermathlabs/llvm-msvc --skill mlir-development -a claude-code`. Or copy the skill folder (.agents/skills/mlir-development in aftermathlabs/llvm-msvc) into .claude/skills/mlir-development in your project. Claude Code loads it when a task matches its description.
Run `npx skills add aftermathlabs/llvm-msvc --skill mlir-development -a codex`. Or copy the skill folder (.agents/skills/mlir-development in aftermathlabs/llvm-msvc) into .agents/skills/mlir-development in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aftermathlabs/llvm-msvc --skill mlir-development -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mlir-development, .gemini/skills/mlir-development, .github/skills/mlir-development and .opencode/skills/mlir-development in your project.
SKILL.md names no scripts, command-line tools or credentials: Mlir Development is instructions for the agent only.
SKILL.md names 1 domain. In commands or code: raw.githubusercontent.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Mlir Development is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Mlir Development: Add Uint Support (pytorch/pytorch, 104k stars), Segment Anything Model Guide (Orchestra-Research/AI-Research-SKILLs, 13k stars), Add Op (onnx/onnx, 22k stars) and CLIP Image-Text Matching (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
aftermathlabs (a GitHub organization) maintains it in aftermathlabs/llvm-msvc, which has 438 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 3, 2026.
Source: aftermathlabs/llvm-msvc on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.