Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ebf5d8 commit d58d006Copy full SHA for d58d006
src/libasr/codegen/asr_to_llvm.cpp
@@ -252,14 +252,6 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
252
return builder0.CreateAlloca(type, size, Name);
253
}
254
255
- llvm::AllocaInst* CreateAlloca(llvm::Type* type,
256
- llvm::Value* size=nullptr, const std::string& Name="") {
257
- llvm::BasicBlock &entry_block = builder->GetInsertBlock()->getParent()->getEntryBlock();
258
- llvm::IRBuilder<> builder0(context);
259
- builder0.SetInsertPoint(&entry_block, entry_block.getFirstInsertionPt());
260
- return builder0.CreateAlloca(type, size, Name);
261
- }
262
-
263
llvm::Value* CreateLoad(llvm::Value *x) {
264
return LLVM::CreateLoad(*builder, x);
265
0 commit comments