mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
237d246665
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.
19 lines
475 B
C++
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 },
|
|
},
|
|
};
|