Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lang] [ir] Add logical and, logical or in ir #8008

Merged
merged 21 commits into from
May 18, 2023
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3585edc
[lang] [ir] Add logical and, logical or in ir
listerily May 15, 2023
9f4af78
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
8ae53de
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
57725ee
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
e60707e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 15, 2023
c342261
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
55b30e3
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
893a97b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 15, 2023
cee1fd2
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
1f775ed
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
f60b943
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
15a7256
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
5e63795
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
f5b2d24
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
98578e8
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
7127512
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 15, 2023
7b5e115
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
40402f5
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 15, 2023
72dbe36
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 16, 2023
b7d81a0
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 16, 2023
444183e
Update on "[lang] [ir] Add logical and, logical or in ir"
listerily May 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 15, 2023
commit 7127512ecb1f53dcb13f0e913ab64dc485b713ac
6 changes: 3 additions & 3 deletions taichi/codegen/llvm/codegen_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -861,9 +861,9 @@ void TaskCodeGenLLVM::visit(BinaryOpStmt *stmt) {

void TaskCodeGenLLVM::visit(TernaryOpStmt *stmt) {
TI_ASSERT(stmt->op_type == TernaryOpType::select);
llvm_val[stmt] = builder->CreateSelect(
builder->CreateIsNotNull(llvm_val[stmt->op1]),
llvm_val[stmt->op2], llvm_val[stmt->op3]);
llvm_val[stmt] =
builder->CreateSelect(builder->CreateIsNotNull(llvm_val[stmt->op1]),
llvm_val[stmt->op2], llvm_val[stmt->op3]);
}

void TaskCodeGenLLVM::visit(IfStmt *if_stmt) {
Expand Down