search for: createbasicblock

Displaying 3 results from an estimated 3 matches for "createbasicblock".

2010 Nov 15
0
[LLVMdev] How to create a new Basic block
> Please help me out. I am trying to create an empty basic block between two > basic blocks. I am using splitedge function. But I am getting the o/p. The > .ll file is not showing any output. > > -- > regards, > soumya prasad ukil Hi, AFAIK you'd use the createBasicBlock method of the llvm::BasicBlock class. If you want to emit it during the code gen phase the EmitBlock method of the CodeGenFunction class helps. Thanks, ~Tarek!
2016 Jan 22
2
Clang 3.8 fails with asan enabled
...sly allocated by thread T0 here: #0 0x794840 in operator new(unsigned long) /export/users/amitrokh/llvm-sanitizer/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62 #1 0x2876154 in Create /export/users/amitrokh/llvm-sanitizer/llvm/include/llvm/IR/BasicBlock.h:94:12 #2 0x2876154 in createBasicBlock /export/users/amitrokh/llvm-sanitizer/llvm/tools/clang/lib/CodeGen/CodeGenFunction.h:1491 #3 0x2876154 in getJumpDestInCurrentScope /export/users/amitrokh/llvm-sanitizer/llvm/tools/clang/lib/CodeGen/CodeGenFunction.h:685 #4 0x2876154 in clang::CodeGen::CodeGenFunction::StartFunction(clang::...
2014 Mar 07
3
[LLVMdev] [RFC] Add second "failure" AtomicOrdering to cmpxchg instruction
...5..5f932b0 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -1735,8 +1735,9 @@ ScalarExprEmitter::EmitScalarPrePostIncDec(const UnaryOperator *E, LValue LV, if (atomicPHI) { llvm::BasicBlock *opBB = Builder.GetInsertBlock(); llvm::BasicBlock *contBB = CGF.createBasicBlock("atomic_cont", CGF.CurFn); - llvm::Value *old = Builder.CreateAtomicCmpXchg(LV.getAddress(), atomicPHI, - CGF.EmitToMemory(value, type), llvm::SequentiallyConsistent); + llvm::Value *old = Builder.CreateAtomicCmpXchg( + LV.getAddress(), atomicPHI, CGF.EmitToMemory(valu...