[clang] [CIR] Add support for thread-local storage (TLS) (PR #168662)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 3 13:49:38 PST 2025
================
@@ -431,6 +425,13 @@ class CIRGenModule : public CIRGenTypeCache {
void setGVProperties(mlir::Operation *op, const NamedDecl *d) const;
void setGVPropertiesAux(mlir::Operation *op, const NamedDecl *d) const;
+ /// Set TLS mode for the given operation based on the given variable
+ /// declaration.
+ void setTLSMode(mlir::Operation *op, const VarDecl &d) const;
+
+ /// Get TLS mode from CodeGenOptions.
+ cir::TLS_Model GetDefaultCIRTLSModel() const;
----------------
andykaylor wrote:
```suggestion
cir::TLS_Model getDefaultCIRTLSModel() const;
```
https://github.com/llvm/llvm-project/pull/168662
More information about the cfe-commits
mailing list