Files
revng-revng/lib/mlir/Dialect/Clift/Utils/CTarget.cpp
Lauri Vasama 237d246665 Factor out the default C target implementation
This commit also adds size 16 -> extended integer kind mapping.

While we are hardcoding this for now, some maintenance (as above) is
needed, so it's best to hardcode it only in one place and share that
definition.
2025-07-17 16:45:03 +02:00

19 lines
475 B
C++

//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "revng/mlir/Dialect/Clift/Utils/CTarget.h"
using namespace mlir::clift;
const TargetCImplementation TargetCImplementation::Default = {
.PointerSize = 8,
.IntegerTypes = {
{ 1, clift::CIntegerKind::Char },
{ 2, clift::CIntegerKind::Short },
{ 4, clift::CIntegerKind::Int },
{ 8, clift::CIntegerKind::Long },
{ 16, clift::CIntegerKind::Extended },
},
};