mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
Add custom opcode BooleanNot
This commit is contained in:
committed by
Pietro Fezzardi
parent
aa63ede37b
commit
8dfd7c2d96
@@ -236,6 +236,9 @@ static TypeVector getReturnTypes(FunctionMetadataCache &Cache,
|
||||
ReturnTypes.push_back(llvmIntToModelType(Arg->getType(), Model));
|
||||
} else if (FunctionTags::BinaryNot.isTagOf(CalledFunc)) {
|
||||
ReturnTypes.push_back(llvmIntToModelType(Call->getType(), Model));
|
||||
} else if (FunctionTags::BooleanNot.isTagOf(CalledFunc)) {
|
||||
auto IntType = llvm::IntegerType::getInt1Ty(CalledFunc->getContext());
|
||||
ReturnTypes.push_back(llvmIntToModelType(IntType, Model));
|
||||
} else {
|
||||
revng_abort("Unknown non-isolated function");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user