OSDN Git Service

[LLVM-C] Allow For Creating a BasicBlock without a Parent Function
authorRobert Widmann <devteam.codafi@gmail.com>
Tue, 8 Jan 2019 06:24:19 +0000 (06:24 +0000)
committerRobert Widmann <devteam.codafi@gmail.com>
Tue, 8 Jan 2019 06:24:19 +0000 (06:24 +0000)
commit146b0f2c22073bc9c8f1a2585db2769cdc958106
treeda2a29cac3230e628e8a6d535dfb5c465166cbf0
parent655bef92b0cd0d693e2fff0a17a7b1c78b3b95d3
[LLVM-C] Allow For Creating a BasicBlock without a Parent Function

Summary: Add a utility function for creating a basic block without a parent function.  A useful operation for compilers that need to synthesize and conditionally insert code without having to bother with appending and immediately unlinking a block.

Reviewers: whitequark, deadalnix

Reviewed By: whitequark

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D56279

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350608 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/Core.h
lib/IR/Core.cpp