This is an archive of the discontinued LLVM Phabricator instance.

[C API] Add LLVMConstBinOp function.
Needs ReviewPublic

Authored by mjacob on Oct 4 2016, 5:13 PM.

Details

Reviewers
deadalnix
Summary

This is analog to the existing LLVMBuildBinOp function.

Event Timeline

mjacob updated this revision to Diff 73584.Oct 4 2016, 5:13 PM
mjacob retitled this revision from to [C API] Add LLVMConstBinOp function..
mjacob updated this object.
mjacob added a subscriber: llvm-commits.

Test?
(Same for the previous patch from today)

Wouldn't LLVMBuildBinOp build a constant if both operand are constant and the operation allows for it? I have not double checked, but I think it does. Considering this, I'm not really sure what this brings to the table.