Skip to content

Conversation

@erwei-xilinx
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for arith.subf and vector.broadcast operations in the aievec dialect for the aie2 and aie2p targets.

Key changes:

  • Implements conversion of floating-point subtraction operations to AIEVec intrinsics for both aie2 and aie2p targets
  • Adds specialized broadcast scalar conversion for aie2p supporting 256-bit and 512-bit vectors
  • Includes comprehensive test coverage for the new conversions

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/Conversion/VectorToAIEVec/test-sub-aie2p.mlir New test file verifying arith.subf conversion for aie2p with f32 and bf16 types
test/Conversion/VectorToAIEVec/test-arith-aie2.mlir Updated tests for arith.subf conversion on aie2 target
test/Conversion/AIEVecToLLVM/test-sub_elem.mlir New test validating lowering of aievec.sub_elem to LLVM intrinsics
test/Conversion/AIEVecToLLVM/test-broadcast_scalar-aie2p.mlir New test for broadcast scalar conversion on aie2p with various data types
lib/Dialect/AIEVec/Transforms/VectorToAIEVecConversions.cpp Implements patterns for arith.subf conversion and aie2p-specific broadcast scalar handling
lib/Conversion/AIEVecToLLVM/AIEVecToLLVM.cpp Adds LLVM conversion patterns for sub_elem operations and broadcast scalar for both aie2 and aie2p
include/aie/Dialect/XLLVM/IR/XLLVMAIE2IntrOps.td Defines LLVM intrinsic operations for subtraction on aie2 and aie2p

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@erwei-xilinx erwei-xilinx added this pull request to the merge queue Nov 20, 2025
Merged via the queue into Xilinx:main with commit d977590 Nov 20, 2025
54 checks passed
@erwei-xilinx erwei-xilinx deleted the aievec_subf_and_broadcast branch November 20, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant