[HLSL][LongVec] Add `and` api support

Open Beginner friendly
#224,396 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Domain
compilers

Research direction

Search the LLVM source for hlsl_and and HLSLTwoArgBuiltin to find the declaration location. Add the requested LongVec API support there, then run the existing HLSL compiler tests and confirm the DirectX and SPIR-V lowerings continue to work.

Written by the indexing model from the issue text.

Description

HLSL

Should be just adding let VaryingLongVector = 1; to
def hlsl_and : HLSLTwoArgBuiltin<"and", "__builtin_hlsl_and"> {

I expect the Lowering in DirectX and SPIRV will just work.

Dominant language
LLVM
Stars
40.6k
Forks
18.7k
Avg merge
18h 16m
Merged PRs (30d)
417

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from llvm/llvm-project

All issues in llvm/llvm-project

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.