llvm-project/clang/lib/CodeGen/PatternInit.h
JF Bastien ef202c308b Variable auto-init: also auto-init alloca
Summary:
alloca isn’t auto-init’d right now because it’s a different path in clang that
all the other stuff we support (it’s a builtin, not an expression).
Interestingly, alloca doesn’t have a type (as opposed to even VLA) so we can
really only initialize it with memset.

<rdar://problem/49794007>

Subscribers: jkorous, dexonsmith, cfe-commits, rjmccall, glider, kees, kcc, pcc

Tags: #clang

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

llvm-svn: 358243
2019-04-12 00:11:27 +00:00

28 lines
722 B
C++

//===- PatternInit - Pattern initialization ---------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_LIB_CODEGEN_PATTERNINIT_H
#define LLVM_CLANG_LIB_CODEGEN_PATTERNINIT_H
namespace llvm {
class Constant;
class Type;
} // namespace llvm
namespace clang {
namespace CodeGen {
class CodeGenModule;
llvm::Constant *initializationPatternFor(CodeGenModule &, llvm::Type *);
} // end namespace CodeGen
} // end namespace clang
#endif