1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Initial LLVM 18.1.4 support

This commit is contained in:
Brian Fiete 2024-05-01 06:26:14 -04:00
parent aa4f9f7dfa
commit 2dd6423fab
19 changed files with 1288 additions and 711 deletions

View file

@ -11,6 +11,13 @@
#include "BeefySysLib/util/AllocDebug.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Compiler.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/DIBuilder.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/Argument.h"
#include "llvm/IR/Constants.h"
#include "BfCompiler.h"
#include "BfSystem.h"
@ -55,11 +62,11 @@ void pt(llvm::Type* t)
os << " isSized: " << t->isSized() << "\n";
os.flush();
if (auto pointerType = llvm::dyn_cast<llvm::PointerType>(t))
{
Beefy::OutputDebugStrF("Element: ");
pt(pointerType->getElementType());
}
// if (auto pointerType = llvm::dyn_cast<llvm::PointerType>(t))
// {
// Beefy::OutputDebugStrF("Element: ");
// pt(pointerType->getElementType());
// }
}
void ppt(llvm::Type* t)
@ -70,7 +77,7 @@ void ppt(llvm::Type* t)
Beefy::OutputDebugStrF("Not a pointer type");
return;
}
pt(pointerType->getElementType());
//pt(pointerType->getElementType());
}
void pt(llvm::DINode* t)