We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
expect_tag
LLVMSumValue
We should emit https://llvm.org/docs/LangRef.html#llvm-expect-intrinsic llvm ops when we can, to help the optimiser know where hot paths are.
I suggest we can do this easily by adding
impl LLVMSumValue { fn expect_tag(mut self, tag: usize) -> Self { self.expect = Some(self.tag_type().const_int(tag, false)); self }
And where expect: Option<IntValue<'c>> is an additional field in LLVMSumValue.
expect: Option<IntValue<'c>>
Now when we build_get_tag we insert an expect intrinsic if self.expect.is_some().
build_get_tag
self.expect.is_some()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We should emit https://llvm.org/docs/LangRef.html#llvm-expect-intrinsic llvm ops when we can, to help the optimiser know where hot paths are.
I suggest we can do this easily by adding
And where
expect: Option<IntValue<'c>>
is an additional field inLLVMSumValue
.Now when we
build_get_tag
we insert an expect intrinsic ifself.expect.is_some()
.The text was updated successfully, but these errors were encountered: