mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 14:56:08 +00:00

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
28 lines
722 B
C++
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
|