Skip to content

Implement prototype vectorized LLVM IR codeGen - #7

Merged
YWHyuk merged 10 commits into
developfrom
vector_llvmir
Jan 11, 2024
Merged

YWHyuk merged 10 commits into
developfrom
vector_llvmir

Conversation

@YWHyuk

@YWHyuk YWHyuk commented Jan 8, 2024

Copy link
Copy Markdown
Collaborator

To implement vector loop and scalar loop (for fallback), LoopLevel Class are modified. Plus, VectorLoopLevel class that implement LLVM IR vector code.

TO seperate previous LLVMKernel, We added new kernel class called VectorizedLLVMKernel that inherits LLVMKernel.

The core of codeGen in VectorizedLLVMKernel is codegen_loops function It make four loops data structure, loops, reduction, inner_most, inner_most_scalar. First of two are almost same one to parent's. Inner most loops generate the vector and scalar LLVM IR code.

Until now, reduction operations is not fully supported.

@YWHyuk
YWHyuk requested a review from wok1909 January 8, 2024 07:32
To implement vector loop and scalar loop (for fallback),
LoopLevel Class are modified. Plus, VectorLoopLevel class that
implement LLVM IR vector code.

TO seperate previous LLVMKernel, We added new kernel class called
VectorizedLLVMKernel that inherits LLVMKernel.

The core of codeGen in VectorizedLLVMKernel is codegen_loops function
It make four loops data structure, loops, reduction, inner_most,
inner_most_scalar. First of two are almost same one to parent's.
Inner most loops generate the vector and scalar LLVM IR code.

Until now, reduction operations is not fully supported.

Signed-off-by: wonhyuk yang <wonhyuk@postech.ac.kr>
YWHyuk and others added 9 commits January 8, 2024 21:04
Fix minor to Major bugs.

Signed-off-by: wonhyuk yang <wonhyuk@postech.ac.kr>
However, this incurred compilation crash. We need to figure out
this compilation error

Signed-off-by: wonhyuk yang <wonhyuk@postech.ac.kr>
Signed-off-by: wonhyuk yang <wonhyuk@postech.ac.kr>
@YWHyuk YWHyuk self-assigned this Jan 10, 2024
@YWHyuk YWHyuk added the enhancement New feature or request label Jan 10, 2024
@YWHyuk
YWHyuk merged commit 0043e0c into develop Jan 11, 2024
@YWHyuk
YWHyuk deleted the vector_llvmir branch January 13, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants